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

Re: Access right question

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-06-25 11:18:36 CEST

On Wed, 2003-06-25 at 04:49, Branden Robinson wrote:
> 2) I personally don't use "$@" when I am not parsing the argument list.
> That is because "$@" actually changes the internal quoting of the arg
> list and $* does not.

Uh, backwards. "$@" is how you pass an unmolested argument list.
(Except with some rather old Bourne shell implementations, where you
have to use ${1+"$@"} to avoid turning an empty argument list into an
argument list with one empty word. But nobody worries about that any
more.)

> % ./foosh one two "three four"
> one two three four
> one
> two
> three four

You'll note that "$*" smashed the four arguments into one word, while
"$@" kept them as three words.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 25 11:19:31 2003

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

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