You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chiang Seng Chang <cs...@ctzen.com> on 2003/11/17 15:52:42 UTC
spaces in command line message arg (-m)
hi,
I am having this problem:
svn ci -m "some simple message"
svn: Can't find an entry
svn: Commit failed (details follow):
svn: /project1/simple
Seems like spaces in the message is causing the problem, this would work:
svn ci -m "some_simple_message"
Please help, thank you.
C Chang
cs at ctzen dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: spaces in command line message arg (-m)
Posted by Julian Foad <ju...@btopenworld.com>.
Chiang Seng Chang wrote:
> Using linux (debian sid), bash.
>
> I suspect it's my wrapper function which is causing this havoc:
>
> svn() {
> xumask=`umask`
> umask 002
> /usr/bin/svn $@
Yes, that's the problem. Put quotes around $@. Unlike "$*", "$@" in quotes expands to multiple separately-quoted strings, which is what you need:
/usr/bin/svn "$@"
> umask $xumask
> }
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: spaces in command line message arg (-m)
Posted by Chiang Seng Chang <cs...@ctzen.com>.
Using linux (debian sid), bash.
I suspect it's my wrapper function which is causing this havoc:
svn() {
xumask=`umask`
umask 002
/usr/bin/svn $@
umask $xumask
}
-cs
----- Original Message -----
From: "Julian Foad" <ju...@btopenworld.com>
To: "Chiang Seng Chang" <cs...@ctzen.com>
Cc: <us...@subversion.tigris.org>
Sent: Monday, November 17, 2003 4:03 PM
Subject: Re: spaces in command line message arg (-m)
> Chiang Seng Chang wrote:
> >
> > svn ci -m "some simple message"
> >
> > svn: Can't find an entry
> > svn: Commit failed (details follow):
> > svn: /project1/simple
>
> It is the shell (the Command Line Interpreter) that handles quotes and
should interpret the quoted message as a single argument. What shell are
you using? Under Unix and under Cygwin, most shells including Bash handle
this correctly. Under Windows, some versions of the Windows/DOS shell do
not, especially when passing arguments to a batch file.
>
> - Julian
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: spaces in command line message arg (-m)
Posted by Julian Foad <ju...@btopenworld.com>.
Chiang Seng Chang wrote:
>
> svn ci -m "some simple message"
>
> svn: Can't find an entry
> svn: Commit failed (details follow):
> svn: /project1/simple
It is the shell (the Command Line Interpreter) that handles quotes and should interpret the quoted message as a single argument. What shell are you using? Under Unix and under Cygwin, most shells including Bash handle this correctly. Under Windows, some versions of the Windows/DOS shell do not, especially when passing arguments to a batch file.
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org