[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: Branden Robinson <branden_at_deadbeast.net>
Date: 2003-06-25 19:17:59 CEST

On Wed, Jun 25, 2003 at 05:18:36AM -0400, Greg Hudson wrote:
> 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.

Er, yup. That'll teach me to send mail in the small hours.

Oh well. My code didn't lie even if my words did. :)

Thanks for the clue application. :)

G. Branden Robinson            |      Optimists believe we live in the
Free Software Developer        |      best of all possible worlds.
branden@deadbeast.net          |      Pessimists are afraid the optimists
http://deadbeast.net/~branden/ |      are right about that.

  • application/pgp-signature attachment: stored
Received on Wed Jun 25 19:18:55 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.