Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant.
- X-seq: zsh-workers 41624
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant.
- Date: Wed, 30 Aug 2017 00:19:01 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ztOmlf Mk1iMWh/uKqFq1xEAXbAipLMQGjFWPb6+ScJQ=; b=GfLu7i7d8zf0CyCOl71Ban 7JMWNkUgqUQxBsp1eE+6BpfMhGQ9jJGi/0rpn6mSYrwpJhfMErX65dms1KQkOjDv 9f1FFuns39BwmebmV14vbrJO/CSXbnVvMlAR7HLeCFLmGv2CWHqqtVqQIOgZPUD1 0psrQbnvFG2DE4qWt8nkO7wSD5HiegOuMB+GcEyvmiQN1q+g3g4xKhyipqetCXlS mUN5SE0Mga4AFIEQqrqSIjxkcAbTSZBcMmNPwKlsep7H77IOkXHsFZpcP7b/4SYu 2AB+MxEZNiwBodmWxPYfZccqeR/DdxK+DdKtXWTLBFnQNgBUMqeIIIqO18awL92A ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ztOmlf Mk1iMWh/uKqFq1xEAXbAipLMQGjFWPb6+ScJQ=; b=Hf/FArNKhazh1yrq7Sr/X/ d5l8dGnRZzySJTAcowSWe2QdlNSQuRI3vLnZIcfbnm4wWRutv+lv4SWIiMw9XwsQ PG9TXoTZ/yv+3bUcnhKnUNW72DkH6rPjDNi+D5bo2XYLQ2V4dgU4NbK42DdpiD/B OztLb4gEfdF7mpfHWW0AydfKPHZv5T8GG+8+tVWTeyeOTXB5p6ebeQDq0d6iwn0x 9Z2D6c4gu455o6TLrAtTiVsDuM5a2dS+mMeM6o8hJR8cKErd2WnWO+qPLSHtOnZt GgGELiHmT+Bxe8jQI5Wk6k8d8SSMrJcasV+lq2e4PFIi1RLUqQ1voEuFOD33vLqg ==
- In-reply-to: <8804.1504004794@thecus.kiddle.eu>
- 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: <20170829022810.485-1-danielsh@tarpaulin.shahaf.local2> <8804.1504004794@thecus.kiddle.eu>
Oliver Kiddle wrote on Tue, 29 Aug 2017 13:06 +0200:
> Daniel Shahaf wrote:
> > gnu)
> > args+=(
> > + '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
>
> That now offers -Z for people using GNU mkdir on a non-Linux system.
> That's far from unusual, either via g prefixes, e.g. gmkdir, aliases or
> directories like /usr/gnu/bin. We could perhaps change the case statement
> to check both variables - case $variant:$OSTYPE - to allow a match for
> gnu:linux*.
Good catch. I'll add an if [[ $OSTYPE == linux* ]] to the case block.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author