severity 750391 wishlist
retitle 750391 Document make does not play nicely with whitespace in file paths
reassign 750391  make-doc-non-dfsg
thanks

On Fri, Jun 13 2014, Ben Hildred wrote:

> On Fri, Jun 13, 2014 at 10:43 PM, Manoj Srivastava <sriva...@acm.org> wrote:

> I was aware of the quoting issues that makefiles have and you will
> notice that the testcase does not have whitespace int the targets or
> prerequisites.

        And these variables should contain space separated entities,
 which in this case is not true.

>
>>
>> You may try this:
>> --8<---------------cut here---------------start------------->8---
>> %.out: %.in
>>         cat "$<" > $@
>>
> this may or may not help after this bug is fixed, but it is irrelevant to
> the problem observed.
>
>> --8<---------------cut here---------------end--------------->8---
>> make test\\\ file.out
>>
> this is wrong, too many backslashes.

        But it works:
--8<---------------cut here---------------start------------->8---
__> cat makefile
%.out: %.in
        cat "$<" > $@

__> make test\\\ file.out
cat "test file.in" > test\ file.out
--8<---------------cut here---------------end--------------->8---

> there are two issues identified in the upstream report. the original issue
> was with automatic variables and whitespace, This is not directly related
> to my problem (yet). When It was re-titled the scope became so broad as to
> make here there be dragons look to be a specific navigation warning. the
> only thing remotely helpful in the upstream bugreport was a call to
> document the issue, which given the age of the bug should have been done
> years ago.

        That is fair. This should be documented. I am marking this
 report as a documentation request.

        manoj
 p,s, Also see:
 http://www.cmcrossroads.com/article/gnu-make-meets-file-names-spaces-them
 
http://gnu-make.2324884.n4.nabble.com/make-target-dependency-names-with-spaces-td14057.html
 
http://stackoverflow.com/questions/9838384/can-gnu-make-handle-filenames-with-spaces

-- 
The Kennedy Constant: Don't get mad -- get even.
Manoj Srivastava <sriva...@acm.org> <http://www.golden-gryphon.com/>  
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C

Attachment: signature.asc
Description: PGP signature

Reply via email to