summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2026-02-24 19:14:42 -0700
committerOliver Kiddle <opk@zsh.org>2026-04-05 11:52:42 +0200
commitb6c83b47e654abfca3317aabd309f60863c00f01 (patch)
treed9cd3a302f956f3e4f2e0b95b6abd530734bc660 /Completion/Unix/Command
parent54155: specify $HOST in OSC7 working directory report (diff)
downloadzsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar.gz
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar.bz2
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar.lz
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar.xz
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.tar.zst
zsh-b6c83b47e654abfca3317aabd309f60863c00f01.zip
54208: allow multiple --preserve flags to cp
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_cp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_cp b/Completion/Unix/Command/_cp
index 0263115b3..937775d4c 100644
--- a/Completion/Unix/Command/_cp
+++ b/Completion/Unix/Command/_cp
@@ -16,8 +16,8 @@ if _pick_variant gnu='(GNU|uutils)' unix --version; then
'(-n --no-clobber -i --interactive)'{-n,--no-clobber}"[don't overwrite an existing file]" \
'(-P --no-dereference)'{-P,--no-dereference}'[never follow symbolic links]' \
'-p[same as --preserve=mode,ownership,timestamps]' \
- '--preserve=-[preserve specified attributes]:: :_values -s , attribute mode timestamps ownership links context xattr all' \
- "--no-preserve=[don't preserve specified attributes]: :_values -s , attribute mode timestamps ownership links context xattr all" \
+ '*--preserve=-[preserve specified attributes]:: :_values -s , attribute mode timestamps ownership links context xattr all' \
+ "*--no-preserve=[don't preserve specified attributes]: :_values -s , attribute mode timestamps ownership links context xattr all" \
'--parents[append source path to target directory]' \
'(-R -r --recursive)'{-R,-r,--recursive}'[copy directories recursively]' \
'--reflink=-[control clone/CoW copies]::when to perform a lightweight copy:(always auto)' \