Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!larry!jwp From: jwp@larry.sal.wisc.edu (Jeffrey W Percival) Newsgroups: comp.unix.questions Subject: Bourne shell read bug? Keywords: bourne shell read Message-ID: <838@larry.sal.wisc.edu> Date: 14 Feb 90 22:29:23 GMT Organization: Space Astronomy Lab, Madison WI Lines: 17 I am using Ultrix 3.1, and seem to have a bourne shell bug: I have a shell script like this cat file \ | while read a b c d e f g do echo $a $b $c $d $e $f $g done and when I run this, $f and $g appear concatenated in the output. I can make this error float around, for example $d and $e being concatenated instead of $f and $g, by inserting string assignments before the "cat file" statement, e.g. x="xxx". Is this well known? Is there a workaround? -- Jeffrey W Percival (jwp@larry.sal.wisc.edu) (608)262-8686