Re: Quoting special characters (was: Re: Possible solution for special characters in makefile paths)

Tim Murphy <[email protected]>
Newsgroups gmane.comp.gnu.make.devel
Message-ID <CACJSg6mxH581sbAEKNxBPbsAi29+DqR8jJmWmbVuT5=mN0B+9Q@mail.gmail.com>
On 26 February 2014 15:14, Frank Heckenbach <[email protected]> wrote:
> Tim Murphy wrote:
>
>> Note that this use of cat is not "space safe"
>> > FOO = a'()'b
>> > all: $(FOO); cat $(FOO)
>>
>> It should be:
>> > all: $(FOO); cat "$(FOO)"
>>
>> ... in which case the shell would act the same as make does.
>
> But not in the way intended, because it would act on a file called
> «a'()'b», including quotes, while this was meant to refer to a file
> called «a()b». You see this more clearly if you consider the planned
> use of backslash escapes:

I think I'm making the the same point as you accidentally.  Hence I
also prefer $[] or $(quote)

-- 
You could help some brave and decent people to have access to
uncensored news by making a donation at:

http://www.thezimbabwean.co.uk/friends/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.