[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: spaces in command line message arg (-m)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-17 22:37:06 CET

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
Received on Mon Nov 17 22:35:30 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.