Re: Re: Stupid shell script question about "read" [SOLVED]

2006-03-22 Thread Neal Murphy
Kevin, Looking for a solution to *my* problem (strange networking problem with debian testing), I saw your post and thought I'd respond. > # set some variables to nightmarish values for testing purposes > d='"ab\""q"' # literal value is "ab\""q" > e='$d' # literal v

Re: Stupid shell script question about "read" [SOLVED]

2006-03-03 Thread Kevin B. McCarty
I wrote: > Could someone tell me why the following works in zsh but not in > bash/posh/dash? > > benjo[3]:~% echo foo bar baz | read a b c > benjo[4]:~% echo $a $b $c > foo bar baz Thanks everyone for the enlightening answers! So just to summarize, the problem is that the pipeline is treated a