about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cut12
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 88d8793ed..862fde76f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-05  Clint Adams  <clint@zsh.org>
+
+	* Mikael Magnusson: 24529: Completion/Unix/Command/_cut:
+	remaining fixes from 24526.
+
 2008-02-05  Peter Stephenson  <pws@csr.com>
 
 	* 24533 (tweaked): Completion/compinstall: use _completer _ignored
diff --git a/Completion/Unix/Command/_cut b/Completion/Unix/Command/_cut
index adfe030d7..b17cf7ccb 100644
--- a/Completion/Unix/Command/_cut
+++ b/Completion/Unix/Command/_cut
@@ -35,14 +35,14 @@ if _pick_variant gnu="Free Soft" unix --version; then
   esac
 
   _arguments \
-        '(--bytes -b)'{--bytes=,-b}'['$_cut_args[bytes]']' \
-        '(--characters -c)'{--characters=,-c}'['$_cut_args[characters]']' \
-        '(--delimiter -d)'{--delimiter=,-d}'['$_cut_args[delimiter]']' \
-        '(--fields -f)'{--fields=,-f}'['$_cut_args[fields]']' \
+        '(--bytes -b+)'{--bytes=,-b}'['$_cut_args[bytes]']:list' \
+        '(--characters -c+)'{--characters=,-c}'['$_cut_args[characters]']:list' \
+        '(--delimiter -d+)'{--delimiter=,-d}'['$_cut_args[delimiter]']:delimeter' \
+        '(--fields -f+)'{--fields=,-f}'['$_cut_args[fields]']:list' \
         '-n['$_cut_args[n]']' \
         '--complement['$_cut_args[complement]']' \
-        '(--only-delimited -s)'{--only-delimited=,-s}'['$_cut_args[only-delimited]']' \
-        '--output-delimiter=['$_cut_args[output-delimiter]']' \
+        '(--only-delimited -s)'{--only-delimited,-s}'['$_cut_args[only-delimited]']' \
+        '--output-delimiter=['$_cut_args[output-delimiter]']:delimeter' \
         '--help['$_cut_args[help]']' \
         '--version['$_cut_args[version]']' \
         '*:file:_files'