From 3fc610c59fb74e1510a69605b01b2f3f8f51079f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 2 Feb 2005 17:03:50 +0000 Subject: Test -nt and FOO=BAR BAR=FOO echo bugs --- ChangeLog | 5 +++++ Test/A06assign.ztst | 13 +++++++++++++ Test/C02cond.ztst | 10 ++++++++++ 3 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4c785e8fc..aef61e7d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-02 Peter Stephenson + + * 20777: Test/A06assign.ztst, Test/C02cond.ztst: tests for + users/8422 and 20774. + 2005-02-01 Bart Schaefer * 20774: Src/exec.c: fix e.g. "FOO=BAR BAR=FOO echo" failure to diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 3093c35ca..bbed909c5 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -264,3 +264,16 @@ >hello >hello >hello + + repeat 10 FOO=BAR BAR=FOO echo $FOO $BAR +0:save and restore multiple variables around builtin +> +> +> +> +> +> +> +> +> +> diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 815e1ef24..3104a8680 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -195,6 +195,16 @@ F:are not recorded. This does not indicate a problem in the shell. [ `echo 0` -lt `echo 1` ] 0:substituion in `[' builtin + fn() { + # careful: first file must exist to trigger bug + [[ -e unmodified ]] || print Where\'s my file\? + [[ unmodified -nt NonExistentFile ]] + print status = $? + } + fn +0:-nt shouldn't abort on non-existent files +>status = 1 + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish -- cgit 1.4.1