Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/bin/sh help needed



> > 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.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org