Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] don't exit shell on [[ -o invalid@option ]]



On Fri, 10 Nov 2017 14:37:17 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> We could certainly suppress the error in emulation modes given that's
> what other shells do.  Further, I'm not strongly invested in the current
> behavior even for native mode, but we should consider the ramifications.

It's not clear if it matters in practice rather than theory, no.  The
test failing is probably usually good enough.

We could attach it to POSIXBUILTINS as that does control some aspects of
reutrn / exit behaviour, and [[ ... ]] behaves like a specially parsed
builtin.

pws




Messages sorted by: Reverse Date, Date, Thread, Author