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

 
 

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

Submitted by:  None
Submitted on:  Thu 24 Feb 2005 11:58:16 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 3.80Operating System: POSIX-Based
Fixed Release: 4.0Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

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>
Project AdministratorIn charge of this item.
 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 File(s):
   
   
Comment:
   

No files currently attached

 

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

    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
    Sun 04 Mar 2012 05:00:36 PM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0

    Back to the top


    Powered by Savane 3.1-cleanup1