bugmake - Bugs: bug #30795, Remove also trailing backslash in...

 
 

bug #30795: Remove also trailing backslash in automatic 'D' variables

Submitted by:  Krzysztof Malinowski <raspy>
Submitted on:  Tue 17 Aug 2010 10:43:13 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Eli Zaretskii <eliz>Open/Closed: Closed
Component Version: 3.81Operating System: MS Windows
Fixed Release: 4.0Triage Status: Small Effort

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 27 Aug 2010 03:04:40 PM UTC, comment #1:

Thanks, I fixed this in CVS.

Eli Zaretskii <eliz>
Project MemberIn charge of this item.
Tue 17 Aug 2010 10:43:13 AM UTC, original submission:

With the following makefile:

%foo:
echo $(@D)

make responds:

$> make obj\foo
echo obj\
obj\
$> make obj/foo
echo obj
obj

The documentation states that "the ā€˜D’ variants all omit the trailing slash which always appears in the output of the dir function." Technically a backslash is not a slash, but the intention here was to remove the trailing path separator. Therefore I recommend that Windows version removes both separators in order to keep the behavior consistent.

The issue is also reproducible on 3.82.

Krzysztof Malinowski <raspy>

 

(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 eliz (Posted a comment)
  • -unavailable- added by raspy (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Aug 2010 03:04:40 PM UTCelizStatusNone=>Fixed
      Assigned toNone=>eliz
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
      Triage StatusNone=>Small Effort

    Back to the top


    Powered by Savane 3.1-cleanup1