bugmake - Bugs: bug #44348, Quoted arguments and wildcard...


bug #44348: Quoted arguments and wildcard extension if temporary batch file is not used

Submitted by:  Stefan Potyra <spotyra>
Submitted on:  Mon 23 Feb 2015 08:12:12 AM UTC  
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Eli Zaretskii <eliz> Open/Closed:  Closed
Component Version:  4.1 Operating System:  MS Windows
Fixed Release:  4.2 Triage Status:  Verified

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 28 Feb 2015 12:37:53 PM UTC, comment #3: 

Than ks, pushed.

Eli Zaretskii <eliz>
Project MemberIn charge of this item.
Tue 24 Feb 2015 06:13:53 AM UTC, comment #2: 

Works for me, thanks a lot!

Stefan Potyra <spotyra>
Mon 23 Feb 2015 08:53:50 PM UTC, comment #1: 

Does the attached patch solve this bug and doesn't introduce new ones?  Please also see if it doesn't cause Make to use a batch file where it shouldn't.

(file #33169)

Eli Zaretskii <eliz>
Project MemberIn charge of this item.
Mon 23 Feb 2015 08:12:12 AM UTC, original submission:  


when using cmd.exe as SHELL and MAKESHELL, make nowadays supports using a shortcut to not create a temporary .bat-file. This works great except under the following circumstances:
If an argument to a command is quoted and contains a wildcard, and a filename matches this wildcard then this argument is expanded. This behavior is different from the behavior on a unixy system or when a temporary batch-file is used.

This problem happens when the command is a cygwin command (and I'm using a mingw-built make). I don't think it happens when running a native windows command, but I'm not sure about this.

This problem seems to persist in 4.0 and 4.1.

I'm attaching a trivial example Makefile and script to reproduce this problem.

Cheers and thanks,

Stefan Potyra <spotyra>


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

Attach Files:

Attached Files
file #33169:  quoted-wildcard.dif added by eliz (595B - application/vnd.ms-excel)
file #33159:  test.mak added by spotyra (243B - application/octet-stream)
file #33160:  printargs.pl added by spotyra (81B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by eliz (Updated the item)
  • -email is unavailable- added by spotyra (Submitted the item)
  • -email is unavailable- added by spotyra

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

    Only logged-in users can vote.




    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-28 eliz Item GroupNone => Bug
        StatusNone => Fixed
        Assigned toNone => eliz
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.2
        Triage StatusNone => Verified
    2015-02-23 eliz Attached File- => Added quoted-wildcard.dif, #33169
    2015-02-23 spotyra Attached File- => Added test.mak, #33159
        Attached File- => Added printargs.pl, #33160
        Carbon-Copy- => Added spotyra

    Back to the top

    Powered by Savane 3.5