Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
	FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS autolearn=no
	autolearn_force=no version=3.4.0
X-Injected-Via-Gmane: http://gmane.org/
To: zsh-workers@zsh.org
From: Christian Neukirchen <chneukirchen@gmail.com>
Subject: Re: Check if option given in short notation (e.g. -9) is set
Date: Tue, 26 Jan 2016 14:51:46 +0100
Lines: 11
Message-ID: <877fiw8n4d.fsf@gmail.com>
References: <CAKc7PVBs3Vvr1UuYWQRkGY8P1CQ6JDCxvukO7zdndBj=HOLs-A__43052.9993762777$1453815322$gmane$org@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: host248-2.natpool.mwn.de
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")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
X-Seq: zsh-workers 37792

Sebastian Gniazdowski <sgniazdowski@gmail.com> 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@gmail.com>  http://chneukirchen.org

