Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant.
- X-seq: zsh-workers 41620
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant.
- Date: Tue, 29 Aug 2017 02:28:09 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=ulqBJZ YMxzMuCCDQdREg+SFrGPxFmRymMD4GJtpZdIY=; b=a5n+73IDQzZEuz/DdG9Ikj N4exYMz1ehk8qvwiadpg7Rg4eT32BsqzzXQZhuEHrnjd5p3577YLHq5gBHO8mxox mbrtGL94pvo+0myNtkeBYZdOx4jGnT8d7zmMFBtvToYpQ0/RFjl02a/QXkvRWIkM DKtGZLI6JFvv6XcVUiVXF2KwZGohLBg557sLJJKrHIl3h5kokIPw7Fc4/Ijkw6s0 Yr1Ksfhk1ZPQMdPxl0USrH1TNC5FsA+msDD2mByce0v6iqrXF6TCJCcqEWdC9Y79 zVeOlRUQQGzCCxTerXUn1nxwwQ3fOoQDakLb9z8cL4CqrnUZgNkfWuOdIFlAvyag ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=ulqBJZ YMxzMuCCDQdREg+SFrGPxFmRymMD4GJtpZdIY=; b=mXXdstd4CwKgKAKFUFXuLl ZKyt0n8n/YhJ+GkedjHDm3FHVxm20Qk5zfBi8SWJK3kmN1MFZCNotsq+JbRVdX4E lseyIq34NF+tTUB5GkZt93G1N7gbo7XxeT5XGu0GR9nNWt/VtCUpFYJ0hmf2qKUL zwlYqLbVRWdTc7syb6ME2KyE26Ts0nJgpaLrsI7mXA3fFV5jIURt/cLDVG6LvSYN BSKpFWZT0vAdtB03HrJDFXHi/dZ8t5Dlts0A5r810g7jELY8zM+VGNWzuTpCcfTS FQRvh210YK/gWT8Mia+7gZ5wg5s3ME49LCKdenDxCeimy1TZfQrRYqHN8EIUCqAw ==
- 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
---
Completion/Unix/Command/_mkdir | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/Completion/Unix/Command/_mkdir b/Completion/Unix/Command/_mkdir
index f2299f7c7..b104d3d60 100644
--- a/Completion/Unix/Command/_mkdir
+++ b/Completion/Unix/Command/_mkdir
@@ -9,14 +9,6 @@ args=(
'(-)*: :->directories'
)
-case "$OSTYPE" in
- linux*)
- args+=(
- '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
- )
- ;;
-esac
-
_pick_variant -r variant gnu=gnu zsh='\(eval\)' $OSTYPE --help
# It can still happen that there is a precommand command or builtin in the line.
# In such cases, the variant has to be modified suitably, after further checking
@@ -42,12 +34,12 @@ case $variant in
;|
gnu)
args+=(
+ '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
'(- :)--help[display help information]'
'(- :)--version[display version information]'
)
;;
zsh) # remove all options
- args=( '*: :->directories' )
;;
*) # non-GNU: remove long options
args=( ${${${args:#(|*\))--*}//--[^ )]#/}/\( #\)/} )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author