From b6c83b47e654abfca3317aabd309f60863c00f01 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Tue, 24 Feb 2026 19:14:42 -0700 Subject: 54208: allow multiple --preserve flags to cp --- Completion/Unix/Command/_cp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_cp') 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)' \ -- cgit v1.3.1