[Top][All Lists]

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

whitespaces in filenames [was: bug in $(wildcard) on Windows?]

From: Fabio Alemagna
Subject: whitespaces in filenames [was: bug in $(wildcard) on Windows?]
Date: Fri, 18 Mar 2005 13:45:14 +0100

On Thu, 17 Feb 2005 08:50:33 -0500, Paul D. Smith <address@hidden> wrote:
> The short answer is that GNU make doesn't support filenames with spaces
> in them.
> The slightly longer answer is that GNU make uses whitespace as a word
> delimiter, and there is NO reliable way to quote whitespace in words in
> all the different places where make chops up lists.

Sorry to reopen an old discussion, but I've come across this very same
issue, that is I need make to handle filenames with spaces in them

Couldn't it be done so that instead of using spaces, as word
delimiters, make used NUL chars?

Let me explain. There could be another assignment operator, say /= or
something else, which instructed make to transform something like

    foo\ bar\ baz hola

or like this:
   "foo bar baz" hola


    foo bar baz<NUL>hola

The variable would have a special bit set so that the various
functions working on lists would know that they need to look for a NUL
char rather than for a space in order to delimit words.

Is there anything that doesn't wouldn't make this a viable option? 

Fabio Alemagna

reply via email to

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