Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: gnu cut completion as wrong as it can be, patch



On Mon, Feb 04, 2008 at 01:53:06AM +0100, Mikael Magnusson wrote:
> Okay, let's try this then,
> http://git.a.la/?p=zsh-cvs.git;a=commitdiff_plain;h=6460b1

Moving the + signs right and fixing a misspelling..

Index: Completion/Unix/Command/_cut
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cut,v
retrieving revision 1.6
diff -u -r1.6 _cut
--- Completion/Unix/Command/_cut	6 Feb 2008 01:17:53 -0000	1.6
+++ Completion/Unix/Command/_cut	6 Feb 2008 01:22:22 -0000
@@ -23,7 +23,7 @@
              bytes           "select only these bytes"
              characters      "select only these characters"
              delimiter       "use DELIM instead of TAB for field delimiter"
-             fields          "select only these fields and lines whitout the delimiter character"
+             fields          "select only these fields and lines without the delimiter character"
              n               "(ignored)"
              complement      "complement the set of selected bytes, characters or fields"
              only-delimited  "do not print lines not containing delimiters"
@@ -35,10 +35,10 @@
   esac
 
   _arguments \
-        '(--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' \
+        '(--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]']' \



Messages sorted by: Reverse Date, Date, Thread, Author