
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] sh bug
- Date: Wed, 19 Feb 2003 13:21:45 -0500
 
- From: Viktor Pavlenko <vvp@example.com>
 
- Subject: [tlug] sh bug
 
I thought you would find the following entertaining.
Viktor
--------------------------------------------------------->8
$ cat >a
a
b
x
$ sh -c 'while read a; do if [ $a = "b" ]; then exit 1; fi; echo $a; done < a; echo done'
a
done
$ ksh -c 'while read a; do if [ $a = "b" ]; then exit 1; fi; echo $a; done < a; echo done'
a
$ uname -sr
SunOS 5.8
--------------------------------------------------------->8
Home |
Main Index |
Thread Index