diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 03:29:19 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 03:29:19 +0100 |
commit | 2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch) | |
tree | 9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/test | |
parent | b0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff) | |
parent | 94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff) | |
download | zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.tar.gz zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.zip |
Update upstream source from tag 'upstream/5.8'
Update to upstream version '5.8'
with Debian dir b7a9cb7b782a12a49dca06e06ca2554b5a95bf93
Diffstat (limited to 'Doc/help/test')
-rw-r--r-- | Doc/help/test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/help/test b/Doc/help/test new file mode 100644 index 000000000..4b8d48e78 --- /dev/null +++ b/Doc/help/test @@ -0,0 +1,20 @@ +test [ arg ... ] +[ [ arg ... ] ] + Like the system version of test. Added for compatibility; use + conditional expressions instead (see the section `Conditional + Expressions'). The main differences between the conditional ex- + pression syntax and the test and [ 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 arith- + metic expressions. + + The command attempts to implement POSIX and its extensions where + these are specified. Unfortunately there are intrinsic ambigui- + ties in the syntax; in particular there is no distinction be- + tween test operators and strings that resemble them. The stan- + dard attempts to resolve these for small numbers of arguments + (up to four); for five or more arguments compatibility cannot be + relied on. Users are urged wherever possible to use the `[[' + test syntax which does not have these ambiguities. |