help-make
[Top][All Lists]
Advanced

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

Re: whitespace in filenames


From: Stephan Beal
Subject: Re: whitespace in filenames
Date: Thu, 25 Sep 2008 00:01:33 +0200

On Wed, Sep 24, 2008 at 11:55 PM, Brian Dessent <address@hidden> wrote:
> But in that context you can just use --arg1="$(SOME_VAL_WITH_SPACES)"
> because the shell does recognise quotes, and make just passes everything
> in the recipe through sh -c.

i was thinking that $(quote) might do some more intelligent handling, e.g.:

a) if the value contains ' characters, quote it with " chars.
b) if the value contains " chars, quote it with '
c) if the value contains both, quote it with " and backslash-escape
any " literals in the value.

That said, i don't think it would be useful terribly often.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]