diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2004-10-05 10:39:41 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-10-05 10:39:41 +0000 |
| commit | 46141be5f917a47b99c4c3be62c9231ae9afca70 (patch) | |
| tree | 2fb5fc3aa156905062ff689272fc012ae3335db3 /Doc | |
| parent | 20418: report parse error rather than crash on unfinished pipelines. (diff) | |
| download | zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar.gz zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar.bz2 zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar.lz zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar.xz zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.tar.zst zsh-46141be5f917a47b99c4c3be62c9231ae9afca70.zip | |
20412, tweaked: Make test builtin more POSIX compatible
20435: Make pattern.c not alter strings.
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/Zsh/builtins.yo | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 5d8f86f29..51802f1d6 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1124,6 +1124,12 @@ xitem(tt(test) [ var(arg) ... ]) item(tt([) [ var(arg) ... ] tt(]))( Like the system version of tt(test). Added for compatibility; use conditional expressions instead (see noderef(Conditional Expressions)). +The main differences between the conditional expression syntax and the +tt(test) and tt([) builtins are: these commands are not handled +syntactically, so for example an empty variable expansion may cause an +argument to be omitted; syntax errors cause status 2 to be returned instead +of a shell error; and arithmetic operators expect integer arguments rather +than arithemetic expressions. ) findex(times) cindex(shell, timing) |
