about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-11-24 22:09:41 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-11-24 22:10:27 +0000
commit77a39b57bf467812b9219ae6a84f2f71e6a50065 (patch)
tree99131cf303d38b18151623e4e4cdab2044005ba1 /README
parent487489c5225aee671077bc0ea257e5c460e675ef (diff)
downloadzsh-77a39b57bf467812b9219ae6a84f2f71e6a50065.tar.gz
zsh-77a39b57bf467812b9219ae6a84f2f71e6a50065.tar.xz
zsh-77a39b57bf467812b9219ae6a84f2f71e6a50065.zip
42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather than a syntax error.
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 12 insertions, 0 deletions
diff --git a/README b/README
index 6fad1d516..00bcc1696 100644
--- a/README
+++ b/README
@@ -54,6 +54,18 @@ foo=([aeiou]\=vowel)
 This is only required for array values contained within parentheses;
 command line expansion for normal arguments has not changed.
 
+3) The syntax
+
+[[ -o foo ]]
+
+where foo is not the name of a shell option (with optional underscores
+and optional "no" prefix) used to be treated as a syntax error, i.e.,
+the enclosing command line or file were aborted.  It now emits a warning
+and returns a non-zero exit code.  For further details, see the
+documentation of the -o switch in the chapter "Conditional Expressions"
+in the zshmisc(1) manual.
+
+
 Incompatibilities between 5.3.1 and 5.4.2
 -----------------------------------------