diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-02 17:03:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-02 17:03:50 +0000 |
commit | 3fc610c59fb74e1510a69605b01b2f3f8f51079f (patch) | |
tree | 9deccb3bcdfac2122a3c43d161a09e94724216b9 /Test/C02cond.ztst | |
parent | facf0309bb9c6a0f1fd3641f0006065789b4b7b8 (diff) | |
download | zsh-3fc610c59fb74e1510a69605b01b2f3f8f51079f.tar.gz zsh-3fc610c59fb74e1510a69605b01b2f3f8f51079f.tar.xz zsh-3fc610c59fb74e1510a69605b01b2f3f8f51079f.zip |
Test -nt and FOO=BAR BAR=FOO echo bugs
Diffstat (limited to 'Test/C02cond.ztst')
-rw-r--r-- | Test/C02cond.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
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 |