summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_du
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
commit2438a0e95aa448f0aeda468752444306b44fe7d0 (patch)
tree8477e9c6af360f6a89af13e8cb5f2a4f9c1cff2c /Completion/Unix/Command/_du
parentb495ba1e5a3ab1396844490ad8cad17dec23d6c1 (diff)
parent21266db1d9ae433bf1dcb196a4e258c00541b599 (diff)
downloadzsh-2438a0e95aa448f0aeda468752444306b44fe7d0.tar.gz
zsh-2438a0e95aa448f0aeda468752444306b44fe7d0.zip
Merge commit 'zsh-4.3.12' into debian
Diffstat (limited to 'Completion/Unix/Command/_du')
-rw-r--r--Completion/Unix/Command/_du10
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_du b/Completion/Unix/Command/_du
index 769c620de..9974d72e9 100644
--- a/Completion/Unix/Command/_du
+++ b/Completion/Unix/Command/_du
@@ -1,6 +1,8 @@
#compdef du
if _pick_variant gnu=Free\ Soft unix --version /dummy/no-such-file; then
+ local ret=1
+
_arguments -s \
'(-a --all -s --summarize)'{-a,--all}'[write counts for all files]' \
'--apparent-size[print apparent sizes rather than disc usage]' \
@@ -27,22 +29,24 @@ if _pick_variant gnu=Free\ Soft unix --version /dummy/no-such-file; then
'--time=-[show time of last modification of any file in the directory]:property:->time' \
'(* -)--help[display help information]' \
'(* -)--version[display version information]' \
- '*:file:_files'
+ '*:file:_files' && ret=0
case $state in
(time)
local -a property
property=(atime access use ctime status)
- _wanted property expl property compadd -a property
+ _wanted property expl property compadd -a property && ret=0
;;
(timestyle)
local -a style desc
style=(full-iso long-iso iso +)
desc=('full-iso' 'long-iso' 'iso' '+FORMAT like `date'\''')
- _wanted -V style expl style compadd -d desc -a style
+ _wanted -V style expl style compadd -d desc -a style && ret=0
;;
esac
+ return ret
+
else
# based on $OSTYPE = solaris2.8
local xdev='[skip directories on different filesystems]'