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

PATCH: improve wget --restrict-file-names completion



--restrict-file-names actually allows:
'nocontrol'
'unix,nocontrol'
'windows,nocontrol'

Regards,
Doug

Index: Completion/Unix/Command/_wget
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_wget,v
retrieving revision 1.9
diff -u -r1.9 _wget
--- Completion/Unix/Command/_wget	26 Feb 2004 12:57:21 -0000	1.9
+++ Completion/Unix/Command/_wget	24 Jun 2005 03:47:21 -0000
@@ -37,7 +37,7 @@
   '--bind-address=:address to bind to (hostname or IP):_hosts' \
   '--limit-rate=[specify limit to download rate]:download rate limit' \
   '--dns-cache=[disable caching DNS lookups]:dns cache:(on off)' \
-  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:(unix windows)' \
+  '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \
   '(--force-directories -x)'{--force-directories,-x}'[force creation of directories]' \
   '(--directory-prefix -P)'{--directory-prefix=,-P+}'[specify prefix to save files to]:prefix:_files -/' \
   '--cut-dirs=:number:' \
@@ -114,4 +114,10 @@
       'r[don'\''t remove listing]' \
       'p[no parent]'
   ;;
+  restrict)
+    _values -s , 'filename char restriction' \
+      '(windows)unix' \
+      '(unix)windows' \
+      '(unix windows)nocontrol'
+  ;;
 esac



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