[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
<< causes exit on stdin
From: |
Dan Jacobson |
Subject: |
<< causes exit on stdin |
Date: |
Thu, 02 Oct 2003 04:56:23 +0800 |
cat a.sh
: <<!
!
echo got here
$ sh a.sh
got here
$ sh <a.sh
$ zsh <a.sh
got here
$ cat b.sh
for i in x y
do
echo $i
: <<!
!
done
echo got here
$ sh b.sh
x
y
got here
$ sh < b.sh
x
y #note that it waits until the loop ends before pooping out. $?=0
$ zsh < b.sh
x
y
got here
Bash Version: 2.05b
- << causes exit on stdin,
Dan Jacobson <=