/bin/sh help needed

David Kramer david at thekramers.net
Wed Apr 24 10:50:51 EDT 2002


On Tue, 23 Apr 2002, Derek D. Martin wrote:

> 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.
> 
> You seem to have overlooked the most simple solution: don't quote it
> at all.  This should give you exactly what you want: a space separated
> list of args.  The main reason for quotes is to preserve space or
> change the default handling of metacharacters.  In this case, it
> appears you don't want to do either.  So don't use quotes.

With no quoting at all, the wildcards get expanded to files, and I need to 
pass the wildcards to the program, not the matching files.

----------------------------------------------------------------------------
DDDD   David Kramer         david at thekramers.net       http://thekramers.net
DK KD  
DKK D                  The internet is full.  Go away.
DK KD  
DDDD   




More information about the Discuss mailing list