Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

Home Page Mailing List Linux and Japan TLUG Members Links