mirror of
https://github.com/zsh-users/zsh
synced 2024-09-29 12:44:46 +00:00
users/8422: [[ ... -nt ... ]] with bad stat caused
mayhem in initialisation files, functions, etc.
This commit is contained in:
parent
95a65e1581
commit
b80c6b0863
|
@ -1,3 +1,10 @@
|
|||
2005-01-24 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/8422: Src/cond.c: [[ ... -nt ... ]] and [[ ... -ot ... ]]
|
||||
with non-existent files (or any failed state) were recorded
|
||||
as errors, causing initialisation scripts, functions, etc., etc.
|
||||
to exit.
|
||||
|
||||
2005-01-23 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20737, 20739: Completion/Unix/Command/_subversion: run svn
|
||||
|
|
|
@ -336,7 +336,7 @@ evalcond(Estate state, char *fromtest)
|
|||
return 1;
|
||||
a = st->st_mtime;
|
||||
if (!(st = getstat(right)))
|
||||
return 2;
|
||||
return 1;
|
||||
return !((ctype == COND_NT) ? a > st->st_mtime : a < st->st_mtime);
|
||||
}
|
||||
case COND_EF:
|
||||
|
|
Loading…
Reference in a new issue