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]

RE: 1.1.8: the read command in bash does not behaive the same as in ksh


pdksh is listed on the cygwin ported software links page:

http://www.hirmke.de/software/develop/gnuwin32/cygwin/porters/Hirmke_Michael
/GNUWin32-links.html

and more specifically:

http://www.hirmke.de/software/develop/gnuwin32/cygwin/porters/Hirmke_Michael
/GNUWin32-links.html#pdksh-5.2.13.x

which will ultimately get you to:

http://www.hirmke.de/software/develop/gnuwin32/cygwin/porters/Vinschen_Corin
na/B20/pdksh-5.2.13.x.README




-----Original Message-----
From: Robinow, David [mailto:drobinow@dayton.adroit.com]
Sent: Tuesday, April 24, 2001 6:04 AM
To: 'sdelrio@home.com'; cygwin@cygwin.com
Subject: RE: 1.1.8: the read command in bash does not behaive the same
as in ksh


You've answered your own question.  ksh does what you want. bash doesn't
bash doesn't work that way on other unix systems either. This has nothing
to do with cygwin. The solution is to use ksh as your shell. (No, I don't
know
where to get it.)

-----Original Message-----
From: Sergio Del Rio [mailto:sdelrio@home.com]
Sent: Tuesday, April 24, 2001 2:26 AM
To: cygwin@cygwin.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

 


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

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


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