Subject: | speedy interferes with pipeline to shell while loop |
bash loops which read a pipeline end after one speedy call. I observed
this with speedy 2.22 and perl 5.8.8, 5.10 on Linux and Solaris. The
following script snippet shows how the while loop ends after just one run.
echo '#!/usr/bin/speedy -w
print "hello world\n";' >hello.speedy
chmod +x hello.speedy
for i in 1 2 3
do echo $i
./hello.speedy
done
echo "1
2
3" |
while read i
do echo $i
./hello.speedy
done