ash doesn't work either, but zsh works if you leave the "-e" off the read command.
Mark Post -----Original Message----- From: Rich Smrcina [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 10:00 AM To: [EMAIL PROTECTED] Subject: Re: read Could this be a specific shell issue? Have you tried others? On Tuesday 30 April 2002 08:53 am, you wrote: > Strange situation: > > #!/bin/sh > a="1.2.3" > echo "a="$a > b=`echo $a | tr -d "."` > echo "b="$b > echo $a | tr -d "." | read -e c > echo "c="$c > > I'd expect: > > a=1.2.3 > b=123 > c=123 > > but I get: > > a=1.2.3 > b=123 > c= > > The builtin function "read" is supposed to read from standard > input which should be the output stage of the pipe. It works > the same on Linux 86 but AIX & HP return the expected results. > > Any ideas? > > Neale -- Rich Smrcina Sytek Services, Inc. Milwaukee, WI [EMAIL PROTECTED] [EMAIL PROTECTED] Catch the WAVV! Stay for Requirements and the Free for All! Update your S/390 skills in 4 days for a very reasonable price. WAVV 2003 in Winston-Salem, NC. April 25-29, 2003 For details see http://www.wavv.org