URL:
  <http://savannah.gnu.org/bugs/?34747>

                 Summary: wildcard function does not handle names with spaces
                 Project: make
            Submitted by: josediazaz
            Submitted on: Fri 04 Nov 2011 06:47:30 PM GMT
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

; wildcard does not handle files with spaces in them.
; A file called "t t" is not 'seen' by wildcard. I tried
; to refer to is as t\\ t or "t\\ t" or "t t" or... etc
; In the following dump (files are in the attached zip file)
; wildcard behaves as expected when the file is name t. When
; I rename the file to t\ t, wildcard cannot 'see' it.
$ ls
Makefile  t
$ cat t
VAR_SET_IN_FILE=TRUE
$ cat Makefile
FILE=$(call wildcard,t)
VAR_SET_IN_FILE=FALSE
ifneq (${FILE},)
include ${FILE}
endif

head:
        @echo FILE=$(FILE)
        echo $(VAR_SET_IN_FILE)

$ make
FILE=t
echo TRUE
TRUE
; ---- so far so good -----
$ vi Makefile
$ mv t "t t"
$ ls
Makefile  t t
$ cat Makefile
FILE=$(call wildcard,t\\ t)
VAR_SET_IN_FILE=FALSE
ifneq (${FILE},)
include ${FILE}
endif

head:
        @echo FILE=$(FILE)
        echo $(VAR_SET_IN_FILE)

$ make
FILE=
echo FALSE
FALSE




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 04 Nov 2011 06:47:30 PM GMT  Name: BugReportWildcardAndSpaces.zip 
Size: 433B   By: josediazaz
This might be a know limitation....
<http://savannah.gnu.org/bugs/download.php?file_id=24302>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34747>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to