delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/24/02:59:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <12F176DD950ED411B68E0050DA14ED1033874C@jupiter.gunzphoto.com.au>
From: Neil Lunn <neillunn AT gunz DOT com DOT au>
To: "'sdelrio AT home DOT com'" <sdelrio AT home DOT com>, cygwin AT cygwin DOT com
Subject: RE: 1.1.8: the read command in bash does not behaive the same as
in ksh
Date: Tue, 24 Apr 2001 17:00:32 +1000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

read is a built-in, you cannot pipe to it.

-----Original Message-----
From: Sergio Del Rio [mailto:sdelrio AT home DOT com]
Sent: Tuesday, April 24, 2001 4:26 PM
To: cygwin AT cygwin DOT com
Subject: 1.1.8: the read command in bash does not behaive the same as in ksh


This was encountered with cygwin v1.1.8 under Windows 2000 Professional.
 
The following script executes fine on other unix systems but not with cygwin
and I was wondering how to get around this problem:
 
echo one two three | read v1 v2 v3
echo "v1 = ${v1}"
echo "v2 = ${v2}"
echo "v3 = ${v3}"
 
It seems that the variables are not set at all when this is done with
cygwin.
 
I have this kind of code in many places and would really appreciate an
answer.
 
Thanks!
 
Regards,
Sergio Del Rio
Templates 4 Business Inc.
Cell: (604) 788-3604
Fax: (604) 582-7877
 

__________________________________________________________________________
Please Note :
Only  the intended recipient is authorised to access or use this e-mail.  If
you are not the intended recipient,
please delete this e-mail and notify the sender immediately.   The contents
of this e-mail are the writer's 
opinion and are not necessarily endorsed by the Gunz Companies unless
expressly stated.

We use virus scanning software but exclude all liability for viruses or
similar in any attachment.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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