-----BEGIN PGP SIGNED MESSAGE-----
content-type: text/plain; charset=us-ascii
With a run pipeline, I'd like the final component of the
pipeline to be a scheme proc like so:
(run (| (unixcmd)
(scheme-proc)))
And I would like to return a non-zero value from the scheme-proc
to indicate an error condition just like with a unix cmd.
But it looks like run will not return the non-zero value
for the scheme proc.
Ideally, the final form in a pipeline should be invoked in the parent
scsh process rather than in a subprocess.
The Korn shell behaves this way; the ksh script:
sum=
(echo one; echo two; echo three) | while read line
do
sum="$sum $line"
done
echo $sum
prints "one two three"
Scsh does not behave this way, and this complicates script writing ...
- Bill
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMM8dvFpj/0M1dMJ/AQHT9AP7BEoPuorFoUGp+8QFYLgmLc112ZslWhdk
YDcF3SHSc0fDz1y7nc7nfYi2yt1ocnIT9ANenvQ+5S7f4yDt8kOFljtFzLiONzk4
t2KXJGw3ok2iUGz+QLaqwEtZhyEbqc6VmJNdOqSmz0EL+gg/wsmVOhb1We0x+4Hu
Lk6vRoglwiw=
=XWRT
-----END PGP SIGNATURE-----
|