This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

readline behaves differently from 2.0.4 to 2.0.5


Hi,
  I have just upgraded my cygwin (bash) from 2.0.4 to 2.0.5, and it broke
one of our development scripts.  Basically what it did was, to drop the
backslash from the input.   My readline version is 4.2a-1.
e.g.,
 test.sh     file
========= 
contains:
cat junk.txt | while read line
do
	if [ $line = "This\is\a\test" ] ; then
		echo `cat junk.txt`
	else
		echo "This is bad"
	fi
done

junk.txt  file
==============
contains:
This\is\a\test

I got an output This is bad.

Can anyone help out?

Thanks.

Zhongyu Zhou

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]