about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cp4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d85b23ae9..a521a3ca1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-18  Clint Adams  <clint@zsh.org>
+
+	* Nikolai Weibull: 24075: Completion/Unix/Command/_cp: fix
+	completion of values for --preserve and --no-preserve.
+
 2007-11-12  Peter Stephenson  <pws@csr.com>
 
 	* 24093: Doc/Zsh/arith.yo: be more accurate about supported
diff --git a/Completion/Unix/Command/_cp b/Completion/Unix/Command/_cp
index 8305c57a5..9838b1702 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]' \