From 7f767568a6490b0a34d35d8db7bb0fcd3da797b6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 8 Nov 2012 12:24:48 +0000 Subject: 30780: document that set -o failures are hard but setopt failures are soft --- Doc/Zsh/builtins.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 37319c9b0..f3a7f6a97 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1361,6 +1361,11 @@ or without the tt(no) prefix remains the same in this case. If the tt(-m) flag is given the arguments are taken as patterns (which should be quoted to protect them from filename expansion), and all options with names matching these patterns are set. + +Note that a bad option name does not cause execution of subsequent shell +code to be aborted; this is behaviour is different from that of `tt(set +-o)'. This is because tt(set) is regarded as a special builtin by the +POSIX standard, but tt(setopt) is not. ) findex(shift) cindex(parameters, positional) -- cgit 1.4.1