[bug?] Spawning cygwin32 program from cygwin64 messes up backslashes

Marco Atzeri marco.atzeri@gmail.com
Thu Jun 11 04:46:52 GMT 2020


On 11.06.2020 03:05, Mingye Wang via Cygwin wrote:
> Hi,
> 
> The following test case script fails under cygwin64:
> 
> ```
> out32=$(/cygdrive/c/cygwin/bin/echo.exe 'a\\ b')
> out64=$(/cygdrive/c/cygwin64/bin/echo.exe 'a\ b')
> test "$out32" = "$out64"
> ```
> 
> In other words, while the correct (by-argv-memory) result is `a\\ b`,
> cygwin32 gives `a\ b` as output instead. The test case works fine when
> CYGWIN=noglob is set, but then `echo.exe 'a\" b'` fails miserably.
> 

I miss to see why running a 32bit Cygwin from a 64 bit instance
makes any sense and it will be worth to spend any time on handling
this borderline case .


More information about the Cygwin mailing list