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.



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