make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does command echo \\\foobar print \\foobar


From: Eli Zaretskii
Subject: Re: why does command echo \\\foobar print \\foobar
Date: Sun, 07 Feb 2010 22:28:58 +0200

> From: "Mark Galeck (CW)" <address@hidden>
> CC: "address@hidden" <address@hidden>, "address@hidden" <address@hidden>
> Date: Sun, 7 Feb 2010 11:49:49 -0800
> Accept-Language: en-US
> acceptlanguage: en-US
> 
> Well OK, please do.  But, is there any chance you can tell me, on Windows, 
> using GNU make, and using either Windows echo or Cygwin echo (I can't predict 
> which, some people have Cygwin installed some don't and I can't control that, 
> I have to support either way),
> 
> how do I reliably echo so that it echoes " \\foobar"

But you already found a way:

  SHELL=cmd.exe

  foobar:
          echo \\foobar

(and rename echo.exe to something else, or remove it from PATH).

> by "reliably" I mean, that it is guaranteed to work now and later with future 
> revisions of Gnu make?

The way it works with the Windows shell and Windows echo will not
change.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]