Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[patch 3/3] _chflags: Update options
- X-seq: zsh-workers 39209
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [patch 3/3] _chflags: Update options
- Date: Tue, 6 Sep 2016 23:04:39 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=8sR3e/gZy9SswkrSpRwgAmac0m1uTBleU2lbYBY7P08=; b=cCW7Ba6QgNmdD5cz7RvHWWTl/5QTJtAC+Au3do2YLWd+WgGQTx4VotJiN91z1HkODd a6DzuiZ1YvtWnYlC2R84RzG9GlkdaZusAVtlcT/QvuSABJvZ0ZDAVegN39nxmdW3hioa nH+KO36SBnAFegqa/Y+L+jPdrMQxF+v1q2rWNBkUucGFFO3n/yBwpyq7GL7IvsZYRlmU P6yCBPWq4/jhly7enH93VOtfhNkjuzEapQHc67sm30JJ00K2GENsVMkeAra6xYdAeAPc 29SEp3H0n2yoOmQLa48y91rR1BNC35QxFRti32GLQrWzl6dv01KN7SzvrQ2b2gnJoqvU TZ2w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Not sure "(specify with -R)" is still needed.
- Matthew Martin
diff --git a/Completion/BSD/Command/_chflags b/Completion/BSD/Command/_chflags
index 726d0fd..43042be 100644
--- a/Completion/BSD/Command/_chflags
+++ b/Completion/BSD/Command/_chflags
@@ -58,17 +58,22 @@ if [[ $OSTYPE = (darwin|dragonfly|freebsd|netbsd)* ]]; then
usparse 'sparse file' \
usystem 'DOS, Windows and CIFS system'
+fi
+
+if [[ $OSTYPE = (darwin|dragonfly|freebsd)* ]]; then
args=(
"-f[don't display diagnostic messages]"
- '-h[act on symlinks]'
'-v[verbose output]'
)
fi
-_arguments -s -A "-*" $args \
+_arguments -s -A "-*" : $args \
+ - opth \
+ '-h[act on symlinks]' \
+ - optR \
+ '-R[recurse directories]' \
'(-L -P)-H[follow symlinks on the command line (specify with -R)]' \
'(-H -P)-L[follow all symlinks (specify with -R)]' \
'(-L -H)-P[do not follow symlinks (specify with -R)]' \
- '-R[recurse directories]' \
':file flag:_values -s , "file flags" $flags[@]' \
'*:file:_files "$own"'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author