delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/21/11:46:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F06C9859CA7D31194ED0000D1ECC4AB147817B4@pkcexv007.sprintspectrum.com>
From: "Zhou, Zhongyu" <zzhou01 AT sprintspectrum DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: readline behaves differently from 2.0.4 to 2.0.5
Date: Tue, 21 May 2002 10:10:47 -0500
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019