fyi: ran the script here on my rh 7.0 system #!/bin/sh and #!/bin/ksh and
got the same results, the read at the end of the pipe didn't work.

-----Original Message-----
From: Ferguson, Neale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: read


Sorry, the -e was a hangover from some playing. I also like the b=`echo..`
but was curious as to why read behaved as it did.

> -----Original Message-----
> the -e on the read doesn't look familiar, but my experience is with
> bash/ksh/pdksh.  i have run into situations where this:
>
> c=`echo $a | tr -d "."`
>
> is more reliable than:
>
> echo $a | tr -d "." | read -e c

Reply via email to