[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is the description of set -- missing in man bash or at least difficu
Re: Is the description of set -- missing in man bash or at least difficult to find?
Fri, 23 Dec 2011 15:02:38 -0500
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0
On 12/22/11 9:24 PM, Peng Yu wrote:
> "If no arguments follow this option, then the positional parameters $@
> are unset. Otherwise, the positional parameters $@ are set to the
> args, even if some of them begin with a -."
Not to put *too* fine a point on it, but this is completely wrong. You
appear to be throwing `$@' in there randomly because you want to search
for that string.
The name of the parameter is `@', just as the name of the HOME environment
variable is `HOME'. It's value is dynamic -- the current set of
positional parameters. You use `$@' to dereference it.
for more information.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/
Re: Is the description of set -- missing in man bash or at least difficult to find?, Chris Jones, 2011/12/22
Message not available