about summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-08-15 16:15:24 -0500
committerdana <dana@dana.is>2018-08-15 16:15:24 -0500
commit9567bfe061679ebdddd371bb829c004fe6e58588 (patch)
tree18a663b4160466051d8c6896e0f4c2f37cee0cf9
parent8178698bb2f0f24d97e3ebf9d0dd8bdfb25677d6 (diff)
downloadzsh-9567bfe061679ebdddd371bb829c004fe6e58588.tar.gz
zsh-9567bfe061679ebdddd371bb829c004fe6e58588.tar.xz
zsh-9567bfe061679ebdddd371bb829c004fe6e58588.zip
43302: Fix _du -B spec
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_du4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ff357f5f2..1565ea370 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-15  dana  <dana@dana.is>
+
+	* 43302: Completion/Unix/Command/_du: Change -B to -B+
+
 2018-08-13  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* unposted: Completion/Unix/Command/_make: Allow pasted arguments
diff --git a/Completion/Unix/Command/_du b/Completion/Unix/Command/_du
index e812b635e..711f43471 100644
--- a/Completion/Unix/Command/_du
+++ b/Completion/Unix/Command/_du
@@ -6,7 +6,7 @@ if _pick_variant gnu=Free\ Soft unix --version /dummy/no-such-file; then
   _arguments -s \
     '(-a --all -s --summarize)'{-a,--all}'[write counts for all files]' \
     '--apparent-size[print apparent sizes rather than disc usage]' \
-    '(-B --block-size -k)'{-B,--block-size=}'[specify block size]:size (bytes)' \
+    '(-B --block-size -k)'{-B+,--block-size=}'[specify block size]:size (bytes)' \
     '(-B --block-size -k --apparent-size -b --bytes)'{-b,--bytes}'[equivalent to --apparent-size --block-size=1]' \
     '(-c --total)'{-c,--total}'[produce a grand total]' \
     '(-H -D --dereference-args -L --dereference -P --no-dereference)'{-H,-D,--dereference-args}'[dereference arguments that are symlinks]' \
@@ -64,7 +64,7 @@ else
     'netbsd*' '-i[output inode usage instead of blocks]' \
     '(darwin*|freebsd*|netbsd*|solaris2.<11->)' '(-h -k -g -B)-m[use block size of 1M-byte]' \
     '(darwin|freebsd<8->.|netbsd)*' '(-h -k -m -B)-g[use block size of 1G-byte]' \
-    'freebsd*' '(-h -k -m -g)-B[block size]:block size (bytes)' \
+    'freebsd*' '(-h -k -m -g)-B+[block size]:block size (bytes)' \
     '(darwin|*bsd|dragonfly)*' '-c[display grand total]' \
     'freebsd*' '-l[count sizes many times if hard linked]' \
     '(freebsd|netbsd)*' '-n[ignore files and directories with nodump flag set]' \