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

 
 

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

Submitted by:  Jose Diaz <josediazaz>
Submitted on:  Fri 04 Nov 2011 06:47:30 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: NoneOperating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
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
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by josediazaz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Nov 2011 12:55:14 PM UTCpsmithItem GroupNone=>Enhancement
      StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Fri 04 Nov 2011 06:47:30 PM UTCjosediazazAttached File-=>Added BugReportWildcardAndSpaces.zip, #24302

    Back to the top


    Powered by Savane 3.1-cleanup1