mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-01 12:56:04 +02:00
Test -nt and FOO=BAR BAR=FOO echo bugs
This commit is contained in:
parent
facf0309bb
commit
3fc610c59f
|
@ -1,3 +1,8 @@
|
|||
2005-02-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 20777: Test/A06assign.ztst, Test/C02cond.ztst: tests for
|
||||
users/8422 and 20774.
|
||||
|
||||
2005-02-01 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 20774: Src/exec.c: fix e.g. "FOO=BAR BAR=FOO echo" failure to
|
||||
|
|
|
@ -264,3 +264,16 @@
|
|||
>hello
|
||||
>hello
|
||||
>hello
|
||||
|
||||
repeat 10 FOO=BAR BAR=FOO echo $FOO $BAR
|
||||
0:save and restore multiple variables around builtin
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue