"set" question for Bourne shell scripts
Arthur David Olson
ado at elsie.UUCP
Sun Feb 17 06:30:30 AEST 1985
> > Now, my question is, how do you remove all parameters, i.e. set $# to 0?
>
> try
> shift $#
Alas, this fails (at least on our 4.1bsd system) if $# was zero to begin with.
Instead try
set x ; shift
--
Shell Oil surely has some legal claim on "Shell."
--
UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado at seismo.ARPA
DEC, VAX and Elsie are Digital Equipment and Borden trademarks
More information about the Comp.unix
mailing list