about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2005-06-24 12:43:19 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2005-06-24 12:43:19 +0000
commit4a923de007235196b95229e0d587b80da7b491c8 (patch)
tree8242c1878cb5656dac6ec93f2bbb4afdbafe4baa
parent14ba91fafd182fbd75bc6c152e8fe749a8097f4a (diff)
downloadzsh-4a923de007235196b95229e0d587b80da7b491c8.tar.gz
zsh-4a923de007235196b95229e0d587b80da7b491c8.tar.xz
zsh-4a923de007235196b95229e0d587b80da7b491c8.zip
21379: improve wget --restrict-file-names completion
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_wget8
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fd5612beb..e607856f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-24  Doug Kearns  <djkea2@gus.gscit.monash.edu.au>
+
+	* 21379: Completion/Unix/Command/_wget: improve --restrict-file-names
+	completion by allowing 'nocontrol' as an argument
+
 2005-06-21  Doug Kearns  <djkea2@gus.gscit.monash.edu.au>
 
 	* 21334: Completion/Linux/Command/_pkgtool: fix typo in -target_dir
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget
index 836d996d5..fd603ba85 100644
--- a/Completion/Unix/Command/_wget
+++ b/Completion/Unix/Command/_wget
@@ -37,7 +37,7 @@ _arguments -C -s \
   '--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 @@ case "$state" in
       'r[don'\''t remove listing]' \
       'p[no parent]'
   ;;
+  restrict)
+    _values -s , 'filename char restriction' \
+      '(windows)unix' \
+      '(unix)windows' \
+      '(unix windows)nocontrol'
+  ;;
 esac