/bin/sh help needed
Rob Ransbottom
rir at attbi.com
Thu Apr 25 05:49:33 EDT 2002
> > At some point hitherto, David Kramer hath spake thusly:
> > > Every combination of single quotes, double quotes, and escaping seems to
> > > either send it all as one argument, or send it all as separate arguments,
> > > but each argument is quoted.
It appears that single quotes for each parameter are what you want.
The sh(1) man page is not very illuminating.
prog '*' '$msg' '\n' 'does all you want EXCEPT' \'
prog:
#!/bin/sh
cd / # to help clarify what is globbed when
for i in $*
do
echo $i
done
#hs/nib!
rob Live the dream.
More information about the Discuss
mailing list