Re: why does command echo \\\foobar print \\foobar
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.make.windows |
|---|---|
| Message-ID | <[email protected]> |
> From: "Mark Galeck (CW)" <[email protected]> > Date: Sun, 7 Feb 2010 10:41:36 -0800 > Accept-Language: en-US > acceptlanguage: en-US > > > >This works for me: I see > > echo \\\foobar > \\\foobar > > > OUCH! I was using Cygwin echo, unknown to me (echo is not a executable in Windows, so the windows shell found the Cygwin echo, later in the path, and did not do the built in Windows echo). > > So now I see this: > > Cygwin echo from Cygwin shell: > > $echo \\\foobar > \foobar > > From windows shell: > > C:\Temp>c:\tools\cygwin\bin\echo \\\foobar > \\\foobar > > > And from within GNU make > > SHELL=cmd.exe > > foobar: > echo \\\foobar > > C:\Temp>make foobar > echo \\\foobar > \\foobar > > > I can kind of understand the first two behaviours: the first, Cygwin echo within a Unix-like shell, tries to behave like Unix. Second, within Windows, tries to be compatible with windows echo. > > But third, I still don't understand. As I say above, I cannot reproduce your third behavior. Again, please invoke Make with -d and show the results.