From 77a39b57bf467812b9219ae6a84f2f71e6a50065 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 24 Nov 2017 22:09:41 +0000 Subject: 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather than a syntax error. --- README | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README') 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 ----------------------------------------- -- cgit 1.4.1