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

Re: Bug#394577: zsh-beta: Completion of date does not work



> This is what _guard is for. Use something like:
>   ': :_guard "^--*" format or date'

Okay.

Index: Completion/Unix/Command/_date
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_date,v
retrieving revision 1.5
diff -u -r1.5 _date
--- Completion/Unix/Command/_date	14 Apr 2007 20:04:07 -0000	1.5
+++ Completion/Unix/Command/_date	21 Apr 2007 05:07:38 -0000
@@ -43,6 +43,6 @@
 fi
 
 _arguments \
-  "$args[@]" \
   '-u[display or set time in UTC]' \
-  ':format or date'
+  ': :_guard "^--*" "format or date"' \
+  "$args[@]"



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