bugmake - Bugs: bug #34747, wildcard function does not handle...

 
 

bug #34747: wildcard function does not handle names with spaces

Submitter:  Jose Diaz <josediazaz>
Submitted:  Fri 04 Nov 2011 06:47:30 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Nov 2011 12:55:14 PM UTC, comment #1: 

GNU make doesn't support file names containing spaces.  See bug #712

Paul D. Smith <psmith>
Group administrator
Fri 04 Nov 2011 06:47:30 PM UTC, original submission:  

; 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

Jose Diaz <josediazaz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24302:  BugReportWildcardAndSpaces.zip added by josediazaz (433B - application/zip - This might be a know limitation....)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by josediazaz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-11-08 psmith Item GroupNone Enhancement
        StatusNone Duplicate
        Open/ClosedOpen Closed
    2011-11-04 josediazaz Attached File- Added BugReportWildcardAndSpaces.zip, #24302

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code