bugmake - Bugs: bug #12126, Backslashes for escaping colons in...

 
 

bug #12126: Backslashes for escaping colons in dependencies are not removed

Submitter:  None
Submitted:  Thu 24 Feb 2005 11:58:16 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.80 Operating System:  POSIX-Based
Fixed Release:  4.0 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 04 Mar 2012 05:00:36 PM UTC, comment #3: 

The basic functionality is fixed: if you escape the colon it will work now.

The return value of $(wildcard ...) is a whole other problem.  The issue is we can't have wildcard always quote the colons in its return value because depending on the context you may not want the quote.  This is similar to the problems we have with whitespace in filenames and I suspect that the solution, when we implement it, will encompass both.

I think you can fake it by using subst to change a ":" to a "\:" in situations where that's needed...?

Paul D. Smith <psmith>
Group administrator
  Spam posted by sevanath
Thu 17 Apr 2008 04:03:55 AM UTC, comment #1: 

FYI, this bug still exists as of make 3.81.

Also, there's no way to use wildcard in a target list if the wildcard results include a :

- dfp

Johnson Earls <darkfoxprime>
Thu 24 Feb 2005 11:58:16 AM UTC, original submission:  

Re-report of bug from 3.74:
(more details and patch at http://groups-beta.google.com/group/gnu.utils.bug/msg/9cafcf265b47c763
)

Backslashes used for quoting or "escaping" colons in dependency names are not removed. However,
they ARE removed, as they should be, from target names.

I wrote a simple makefile "escaped-colon-bug.mk" which shows the problem:

    #silvat@harley> cat escaped-colon-bug.mk
    xyz: xyz\:1
            @echo $@: $<

    xyz\:1: escaped-colon-bug.mk
            @echo $@: $<

    .PHONY: none
    none:


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 sevanath (Posted a comment)
  • -email is unavailable- added by darkfoxprime (Posted a comment)
  •  

    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
    2012-03-04 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code