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-workers 37792
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Check if option given in short notation (e.g. -9) is set
- Date: Tue, 26 Jan 2016 14:51:46 +0100
- In-reply-to: <CAKc7PVBs3Vvr1UuYWQRkGY8P1CQ6JDCxvukO7zdndBj=HOLs-A__43052.9993762777$1453815322$gmane$org@mail.gmail.com> (Sebastian Gniazdowski's message of "Tue, 26 Jan 2016 14:33:29 +0100")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBs3Vvr1UuYWQRkGY8P1CQ6JDCxvukO7zdndBj=HOLs-A__43052.9993762777$1453815322$gmane$org@mail.gmail.com>
Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> writes:
> Hello
> [[ -o "-9" ]] doesn't work. Is there any way to check option given in
> such format, besides holding an associative array that would assign
> long name to each short name?
Perhaps [[ $- = *9* ]] ?
--
Christian Neukirchen <chneukirchen@xxxxxxxxx> http://chneukirchen.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author