help-make
[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: Paul Smith
Subject: Re: why does command echo \\\foobar print \\foobar
Date: Sat, 06 Feb 2010 23:49:08 -0500

On Sat, 2010-02-06 at 20:16 -0800, Mark Galeck (CW) wrote:
> With the makefile
> 
> foobar:
>                 echo \\\foobar
> why 
> 
> C:\Temp>make foobar
> \\foobar
> 
> Where is this explained in the manual?

This is either an issue with your shell, or it's a problem with GNU
make's Windows port.  On UNIX systems the output is "\foobar" and this
is what I would expect.

To see if it's a problem with the shell or not, you should create a
command that make will pass to the shell for sure; for example one that
contains a ";" command separator, like:

        all: ; echo hi; echo \\\foo

and see what that prints.  If it still prints the "incorrect" value,
then it's a problem with whatever shell you're using and you should
discuss it with them.

If you get the correct value then there's a bug in GNU make's fast-path
backslash handling for Windows systems.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist





reply via email to

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