summaryrefslogtreecommitdiff
path: root/shells/zsh/patches
diff options
context:
space:
mode:
Diffstat (limited to 'shells/zsh/patches')
-rw-r--r--shells/zsh/patches/patch-Completion_Unix_Command__du14
-rw-r--r--shells/zsh/patches/patch-Completion_Unix_Command__sort18
2 files changed, 32 insertions, 0 deletions
diff --git a/shells/zsh/patches/patch-Completion_Unix_Command__du b/shells/zsh/patches/patch-Completion_Unix_Command__du
new file mode 100644
index 00000000000..0b6134150a2
--- /dev/null
+++ b/shells/zsh/patches/patch-Completion_Unix_Command__du
@@ -0,0 +1,14 @@
+$NetBSD: patch-Completion_Unix_Command__du,v 1.1 2015/07/26 22:04:13 snj Exp $
+
+Unbreak filename completion on non-GNU du binaries like NetBSD's.
+Upstreadm commit 806f73a0b3d3959d5af12ce97e0258b4d4fe7d76
+
+--- Completion/Unix/Command/_du.orig 2015-07-26 14:39:36.000000000 -0700
++++ Completion/Unix/Command/_du 2015-07-26 14:39:17.000000000 -0700
+@@ -74,5 +74,5 @@ else
+ do
+ [[ $OSTYPE = $~pattern ]] && args+=( $arg )
+ done
+- _arguments -s -A "-*" $args
++ _arguments -s -A "-*" $args '*:file:_files'
+ fi
diff --git a/shells/zsh/patches/patch-Completion_Unix_Command__sort b/shells/zsh/patches/patch-Completion_Unix_Command__sort
new file mode 100644
index 00000000000..f8132692d2d
--- /dev/null
+++ b/shells/zsh/patches/patch-Completion_Unix_Command__sort
@@ -0,0 +1,18 @@
+$NetBSD: patch-Completion_Unix_Command__sort,v 1.1 2015/07/26 22:04:13 snj Exp $
+
+Add missing ]. Fixes NetBSD and DragonFly completion of the sort
+command. Without this, you get:
+"_arguments:comparguments:312: invalid option definition: (-s)-S[don't
+use stable sort"
+
+--- Completion/Unix/Command/_sort.orig 2015-07-26 14:58:06.000000000 -0700
++++ Completion/Unix/Command/_sort 2015-07-26 14:58:16.000000000 -0700
+@@ -55,7 +55,7 @@ case $variant in
+ netbsd*|dragonfly*)
+ args+=(
+ "${ordering}-l[sort by string length of field]"
+- "(-s)-S[don't use stable sort"
++ "(-s)-S[don't use stable sort]"
+ )
+ ;|
+ openbsd*)