/bin/sh help needed
David Kramer
david at thekramers.net
Thu Apr 25 11:53:48 EDT 2002
On Thu, 25 Apr 2002, Rob Ransbottom 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.
>
>
> 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' \'
Once again, you are forgetting that what I have is one string with
space-separated wildcards, not separate parameters. Separate parameters
is easy, and I would not proudly display the penguin on my desk if I could
not figure out how to escape individual parameters.
-------------------------------------------------------------------
DDDD David Kramer http://thekramers.net
DK KD "This must be Thursday", said Arthur to himself, sinking low
DKK D over his beer. "I never could get the hang of Thursdays."
DK KD
DDDD Douglas Adams, "Hitchhiker's Guide to the Galaxy".
More information about the Discuss
mailing list