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

 
 

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

Submitter:  Krzysztof Malinowski <raspy>
Submitted:  Tue 17 Aug 2010 10:43:13 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  eliz Open/Closed:  Closed
Component Version:  3.81 Operating System:  MS Windows
Fixed Release:  4.0 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Thanks, I fixed this in CVS.

Eli Zaretskii <eliz>
Group Member
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 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 eliz (Posted a comment)
  • -email is unavailable- added by raspy (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-27 eliz StatusNone Fixed
        Assigned toNone eliz
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0
        Triage StatusNone Small Effort

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code