commit b1a26c5bd891f015ba2c43252b083e9d48d25001
parent 1095cdf1a451f585c3794e8bf225772982c49f17
Author: tjg <tjg>
Date: Tue, 26 Jan 1999 12:53:16 +0000
Testing: add regression test for `-s' behaviour.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/trip.rc b/trip.rc
@@ -559,3 +559,9 @@ expect date
x=`{ { sleep 1; echo echo foo } | { ./tripping n; $rc >[2=1] } }
if (!~ foo $x)
fail input file descriptor nonblocking
+
+# `rc -s' reads from stdin, but should not imply `-i'
+expect foo bar qux
+$rc -s foo bar qux <<'eof'
+echo $*
+eof