From: "Nikolai Weibull" <now@bitwi.se>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: _cp patch for --preserve and --no-preserve _values
Date: Fri, 9 Nov 2007 10:58:32 +0100 [thread overview]
Message-ID: <dbfc82860711090158h3c66a1fn3fe39111f2a2eac@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
The calls to _values for --preserve and --no-preserve don't contain a
description. This means that the value "mode" becomes the description
and is thus not completed.
[-- Attachment #2: _cp.patch --]
[-- Type: application/octet-stream, Size: 967 bytes --]
diff --git a/Completion/Unix/Command/_cp b/Completion/Unix/Command/_cp
index 8305c57..9838b17 100644
--- a/Completion/Unix/Command/_cp
+++ b/Completion/Unix/Command/_cp
@@ -12,8 +12,8 @@ _arguments -s \
'(-l --link)'{-l,--link}'[link files instead of copying]' \
'(-L --dereference)'{-L,--dereference}'[always follow symbolic links]' \
'-p[same as --preserve=mode,ownership,timestamps]' \
- '--preserve=:attributes to preserve:_values -s , mode ownership timestamps links all' \
- '--no-preserve=:attributes not to preserve:_values -s , mode ownership timestamps links all' \
+ '--preserve=:attributes to preserve:_values -s , attribute mode ownership timestamps links all' \
+ '--no-preserve=:attributes not to preserve:_values -s , attribute mode ownership timestamps links all' \
'--parents[append source path to target directory]' \
'-P[same as --no-dereference]' \
'(-R -r --recursive)'{-R,-r,--recursive}'[copy directories recursively]' \
next reply other threads:[~2007-11-09 9:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 9:58 Nikolai Weibull [this message]
2007-11-18 20:35 ` Clint Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dbfc82860711090158h3c66a1fn3fe39111f2a2eac@mail.gmail.com \
--to=now@bitwi.se \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).