Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] don't exit shell on [[ -o invalid@option ]]
- X-seq: zsh-workers 42010
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] don't exit shell on [[ -o invalid@option ]]
- Date: Sat, 11 Nov 2017 12:45:28 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1510404329; bh=eb0zb8eVZaKTwIlVINBzirNg5xfiQ/1KBxyKUXCc+hU=; h=Date:From:To:Subject:In-Reply-To:References; b=LCd7CnFQe7/Krr/5oJgMfidEOZ9sh4rsrc4/j6OLITgE/ZVc2OTFkUF54z/0MfFGA rlgkrHejdKDNEzusRz2TrHxBCi5c7yxliVkBCJd4L/oXsOx84Xb1r6LHVNJfMqm38N yd+zGIjMgzF/v6cM4gs9vtDCqThndx+ZSCeicYLzEdPzRVUcZYmXU/PABCIjwwYgKU FwIlZNgHmpLavYaDPcmuvP4Ubhzsc9s+2Yx5bw5eEfeHBHxPUvllZtvtPaRovnd3CW Me7bWY6ITaXmpYVHa31oLoHJLJYT35G3rjS4BxbL93tK7yQLHPFjwqQ3SScYeXChFI wNNSzghmpX7pA==
- In-reply-to: <171110143717.ZM16244@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <0d6faa9a-fb69-8343-9630-a60d8f1bee0a@inlv.org> <171110143717.ZM16244@torch.brasslantern.com>
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