54208: allow multiple --preserve flags to cp

This commit is contained in:
Ronan Pigott
2026-02-24 19:14:42 -07:00
committed by Oliver Kiddle
parent b0ad7ab750
commit b6c83b47e6
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2026-04-05 Oliver Kiddle <opk@zsh.org>
* Ronan Pigott: 54208: Completion/Unix/Command/_cp:
allow multiple --preserve flags
* Johannes Altmanninger: 54155: Src/Zle/termquery.c:
specify $HOST in OSC7 working directory report

View File

@@ -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)' \