This is the mail archive of the
mailing list for the Cygwin project.
A simple characterization of the CR/LF bug in bash.exe
- To: cygwin at sourceware dot cygnus dot com
- Subject: A simple characterization of the CR/LF bug in bash.exe
- From: Hubert Garavel <Hubert dot Garavel at inrialpes dot fr>
- Date: Fri, 29 Sep 2000 22:36:59 +0200 (MET DST)
The backtick bug in bash (i.e., bash forgets to strip
\r when evaluating a shell command within `...`)
has already been reported.
We give here a small shell-script named "backtick"
that illustrates this bug, exhibiting an incompatibility
between /bin/sh.exe and /bin/bash.exe.
# create a program that prints "Hello" and compile it
# with -mno-cygwin to obtain a "standard" Win32 application
cat > bashtest.c << EOF
gcc -mno-cygwin bashtest.c -o bashtest.exe
/bin/test "`./bashtest`" = "Hello"
Want to unsubscribe from this list?
Send a message to email@example.com