Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Check if option given in short notation (e.g. -9) is set
- X-seq: zsh-users 21179
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Check if option given in short notation (e.g. -9) is set
- Date: Tue, 26 Jan 2016 15:32:37 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GcbYnUGwpYLjlou2fAypb6sIhE2YMWLqRqEo5kQ6Ac0=; b=r0nKykTpOT/WRrGuRqZsGAoP7R0u5tCP+UIrabj4PY8HUVtAIraSAx+qvFtKXb/a7z r+e7mrH09H+6aUT42bgzEbamXMF5A0gpc0i3N1DJvUBKFFIN1dJ0hlDwzPtSYl+LRr/j WLaAy3N/66u/YgzqUPtuMueBaFYPlmHE6FMZjzqcPTKD8i1vES4x6+jqgKPySZGXR9qh PNG8o+RRXeiI2IFrTtEl1N6hoGBjPVbA6zCaP1JVMfO55RSXaPaxVav4l9SKjs1Bwytd xXT99sawrwGRlNAry6IlpXIxzfk+thfxq0eRuTZiQ7VZS4ZVaCtLQQbpWjOBWLJgdttf ovaw==
- In-reply-to: <20160126134358.24d8e723@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBs3Vvr1UuYWQRkGY8P1CQ6JDCxvukO7zdndBj=HOLs-A@mail.gmail.com> <20160126134358.24d8e723@pwslap01u.europe.root.pri>
On 26 January 2016 at 14:43, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> I think
>
> [[ -n ${-[(r)9]} ]]
>
> is reliable. It should reflect all single-letter options, so if it
> doesn't that's a bug.
Checked this on 5.0.2, 5.0.8, 5.1 and 5.2, works. Thanks
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author