summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjg <tjg>2000-04-19 14:27:53 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:17 +0100
commit216659afe8132442e85e5a012984c276eed0ebbf (patch)
tree366dca22cba6fa6a924e729993ad68a7b465db78
parentf5cf8df384be0b52cbf08015d77580d8f44a77d6 (diff)
2000-04-19
Bug: isatty() tests in input.c are relevant to any fd, not just 0. Now `. -i /dev/tty' works right. Bug: fn sigexit wasn't always cleared in child shells. Bug: `~ () '*'' dumped core.
-rw-r--r--ChangeLog9
-rw-r--r--trip.rc14
2 files changed, 22 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d778b29..2a61ade 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -665,3 +665,12 @@ Changes since rc-1.5b2
available on the web.
Release: rc-1.6b2.
+
+2000-04-19
+
+ Bug: isatty() tests in input.c are relevant to any fd, not just 0.
+ Now `. -i /dev/tty' works right.
+
+ Bug: fn sigexit wasn't always cleared in child shells.
+
+ Bug: `~ () '*'' dumped core.
diff --git a/trip.rc b/trip.rc
index a381db4..163ec3b 100644
--- a/trip.rc
+++ b/trip.rc
@@ -318,7 +318,7 @@ submatch 'cdpath='''' cd frobnatz' 'couldn''t cd to frobnatz' 'cd to frobnatz su
submatch 'wait 1 2 3' 'too many arguments to wait' 'arg count'
$rc -c 'wait 1' >[2]/dev/null && fail wait 1
-sleep 5&
+sleep 3&
expect $apid
echo $apids
wait
@@ -569,3 +569,15 @@ eof
# Believe it or not, I broke root directory globbing in rc-1.6b1.
x=/*
~ '/*' $^x && fail root directory globbing
+
+# fn sigexit should be cleared in children
+
+x = ()
+expect nonesuch not found
+x = `{true | nonesuch}; if (~ $x trip) fail sigexit in children
+x = `{ < /dev/null wc |grep xxx }; if (~ $x trip) fail sigexit in children
+x = `{{ wc | wc } < /dev/null }; if (~ $x trip) fail sigexit in children
+
+# core dumps in glob.c
+~ () '*' && fail globber problem
+~ () '**' && fail globber problem