Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Update _cp
- X-seq: zsh-workers 27647
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Update _cp
- Date: Tue, 2 Feb 2010 03:30:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vTJLez3ysKz8hYk6288k/mHDL5XpMYvvhMmtxdUjtB8=; b=KByV9NrMUOxEomjOUNRy3hTmI6C8IzXOYnFKuIlIXMP/TvC1Ei9DFTUy2lkuBZbYWa CFBNCAZqUH7KsvelKnm5ouCxojVrEwuTC9g0tQhwelvO/LAQtNkqzuTQJ2pZrmiBdIVW /K77/FZE/eOMeBDFKicBIQp83fjdkllfMCGhQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Vy5Tsev8YmFT1agDNV6mklOfMaAPViaqDZ6MGtDl6pdWs72G1aL+JXqjHqpKWmf03U QAYOWQQFOzdgy4Y6P8KQ43aS89Pjof4lmiG+jUXoi8jIoTPTpPqiRLmOTaEE9Ly1sBji d7dEl1uAoTQ6VXiczHAJhQNrqTGl2mcL64iHw=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Here's the patch for applying: http://mika.l3ib.org/patches/zsh-cp.patch
--reply is deprecated (and doesn't even exist in my version (8.3) so I
removed it)
some new options (-P, -n, --reflink, -T)
added [descriptions] to some options that only had :descriptions: for
their values
changed values for --(no-?)preserve
correct typo in [description] for -d
diff --git a/Completion/Unix/Command/_cp b/Completion/Unix/Command/_cp
index 9838b17..ddf8a4f 100644
--- a/Completion/Unix/Command/_cp
+++ b/Completion/Unix/Command/_cp
@@ -3,27 +3,29 @@
_arguments -s \
'(-a --archive)'{-a,--archive}'[same as -dpR]' \
'(-b --backup)-b[backup]' \
- '(-b --backup)--backup=:method:(none off numbered t existing nil
simple never)' \
+ '(-b --backup)--backup=[backup]:method:(none off numbered t
existing nil simple never)' \
'--copy-contents[copy contents of special files when recursive]' \
- '-d[same as --no-dereference --preserve=link]' \
+ '-d[same as --no-dereference --preserve=links]' \
'(-f --force)'{-f,--force}'[remove and retry for destinations that
cannot be opened]' \
'(-i --interactive)'{-i,--interactive}'[prompt before overwrite]' \
'-H[follow command-line symbolic links]' \
'(-l --link)'{-l,--link}'[link files instead of copying]' \
'(-L --dereference)'{-L,--dereference}'[always follow symbolic links]' \
+ '(-n --no-clobber)'{-n,--no-clobber}'[do not overwrite an existing file]' \
+ '(-P --no-dereference)'{-P,--no-dereference}'[never follow symbolic links]' \
'-p[same as --preserve=mode,ownership,timestamps]' \
- '--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' \
+ '--preserve=[preserve specified attributes]:attributes to
preserve:_values -s , mode timestamps ownership links context xattr
all' \
+ '--no-preserve=[don'\''t preserve specified attributes]:attributes
not to preserve:_values -s , mode timestamps ownership links context
xattr all' \
'--parents[append source path to target directory]' \
- '-P[same as --no-dereference]' \
'(-R -r --recursive)'{-R,-r,--recursive}'[copy directories recursively]' \
+ '--reflink=[control clone/CoW copies]:when to perform a lightweight
copy:(always auto)' \
'--remove-destination[remove each existing destination file before
attempting to open it]' \
- '--reply=:how to handle the prompt about an existing destination
file:(yes no query)' \
- '--sparse=:when to create sparse files:(auto always never)' \
+ '--sparse=[control creation of sparse files]:when to create sparse
files:(auto always never)' \
'--strip-trailing-slashes[remove any trailing slashes from each
source argument]' \
'(-s --symbolic-link)'{-s,--symbolic-link}'[make symbolic links
instead of copies of non-directories]' \
- '(-S --suffix)'{-S,--suffix=}':backup suffix:' \
- '--target-directory=:target directory:_files -/' \
+ '(-S --suffix)'{-S,--suffix=}'[override the usual backup
suffix]:backup suffix:' \
+ '(-t --target-directory)'{-t,--target-directory=}'[copy all source
arguments into target directory]:target directory:_files -/' \
+ '(-T --no-target-directory)'{-T,--no-target-directory}'[treat DEST
as a normal file]' \
'(-u --update)'{-u,--update}'[copy only when source is newer than
destination or destination is missing]' \
'(-v --verbose)'{-v,--verbose}'[explain what is being done]' \
'(-x --one-file-system)'{-x,--one-file-system}'[stay on this file system]' \
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author