From 46141be5f917a47b99c4c3be62c9231ae9afca70 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 Oct 2004 10:39:41 +0000 Subject: 20412, tweaked: Make test builtin more POSIX compatible 20435: Make pattern.c not alter strings. --- Doc/Zsh/builtins.yo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Doc/Zsh/builtins.yo') 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) -- cgit v1.2.3