From: Daniel A. S. <st...@ic...> - 2002-10-29 00:26:48
|
On Tuesday, October 29, 2002, at 07:23 AM, dav...@ma... wrote: > Thanks for the help with the script initialization. It works great. > What do the $@ mean. In a regular expression $ means the end of the > string so I can't quite fathom its meaning here. this is /bin/sh syntax, not tcl; c.f. man sh : $@ Expands to the positional parameters, starting from one. When the expansion occurs within double- quotes, each positional parameter expands as a sep- arate argument. If there are no positional parame- ters, the expansion of @ generates zero arguments, even when @ is double-quoted. What this basically means, for example, is if $1 is ``abc'' and $2 is ``def ghi'', then "$@" expands to the two argu- ments: "abc" "def ghi" Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |