From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5487 invoked from network); 24 Jun 2005 04:09:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Jun 2005 04:09:04 -0000 Received: (qmail 19947 invoked from network); 24 Jun 2005 04:08:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jun 2005 04:08:58 -0000 Received: (qmail 5100 invoked by alias); 24 Jun 2005 04:08:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21379 Received: (qmail 5090 invoked from network); 24 Jun 2005 04:08:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Jun 2005 04:08:53 -0000 Received: (qmail 19465 invoked from network); 24 Jun 2005 04:08:53 -0000 Received: from grunt28.ihug.com.au (203.109.249.148) by a.mx.sunsite.dk with SMTP; 24 Jun 2005 04:08:49 -0000 Received: from 203-217-74-99.dyn.iinet.net.au (localhost.localdomain) [203.217.74.99] by grunt28.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 1DlfTB-0006JO-00; Fri, 24 Jun 2005 14:07:13 +1000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id j5O42IlC021727 for ; Fri, 24 Jun 2005 14:02:26 +1000 Received: (from doug@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id j5O4298q021716 for zsh-workers@sunsite.dk; Fri, 24 Jun 2005 14:02:09 +1000 X-Authentication-Warning: localhost.localdomain: doug set sender to dougkearns@gmail.com using -f Date: Fri, 24 Jun 2005 14:02:09 +1000 From: Doug Kearns To: zsh-workers@sunsite.dk Subject: PATCH: improve wget --restrict-file-names completion Message-ID: <20050624040209.GG4591@localhost.localdomain> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 --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