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



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