#107 make removes too many backslashes

OTHER
closed
make (28)
out-of-date
Known_bugs
2013-01-25
2002-01-20
No

Consider this makefile:

all:
echo "[\\\]"

Cygwin and linux make report

$ make
echo "[\\\]"
[\\]

However, Mingw make (called mmake.exe here) produces

$ mmake
echo "[\\\]"
[\]

There's no problem if the backslashes are in a sequence
of fewer than three. 'echo "[\\|\$$$$]' produces the
(correct) result [\|$$] on all three makes.

SHELL is cygwin sh, or bash (makes no difference)

Discussion

  • Danny Smith

    Danny Smith - 2002-01-21

    Logged In: YES
    user_id=11494

    Yes, confirmed. This stems from the same problem as the
    prior make bug report. Sigh. I'll upload an alternative
    make binary that works with or without cygwin sh.exe but
    has the drawback of writing out temporory script file for
    each commandline sent to SHELL. Or what about one that
    only works with cygwin sh.exe? No, if you want that one
    you can get it from cygwin.

    Danny

     
  • Earnie Boyd

    Earnie Boyd - 2002-08-05
    • assigned_to: dannysmith --> earnie
    • status: open --> closed-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-25
    • labels: binutils --> make
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Known_bugs
    • milestone: Known_bugs --> OTHER
     

Log in to post a comment.