From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24967 invoked from network); 10 Oct 2006 00:25:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Oct 2006 00:25:24 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 73760 invoked from network); 10 Oct 2006 00:25:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Oct 2006 00:25:18 -0000 Received: (qmail 7873 invoked by alias); 10 Oct 2006 00:25:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22851 Received: (qmail 7862 invoked from network); 10 Oct 2006 00:25:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Oct 2006 00:25:13 -0000 Received: (qmail 73495 invoked from network); 10 Oct 2006 00:25:13 -0000 Received: from mailfe01.tele2.fr (HELO swip.net) (212.247.154.12) by a.mx.sunsite.dk with SMTP; 10 Oct 2006 00:25:12 -0000 X-T2-Posting-ID: mBXjJ9CYMpI3HGlT2s4LT8j3JzBVs7ioB0ePn7y7rgg= X-Cloudmark-Score: 0.000000 [] Received: from [83.179.171.0] (HELO localhost) by mailfe01.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTPS id 276859937 for zsh-workers@sunsite.dk; Tue, 10 Oct 2006 02:25:11 +0200 Date: Tue, 10 Oct 2006 02:25:11 +0200 From: "arno." To: zsh-workers@sunsite.dk Subject: bug: completion in _initd: forcereload instead of force-reload Message-ID: <20061010002511.GA12988@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, when I try to launch an init script with argument force-reload,=20 completion is broken. ex: /etc/init.d/kdm forc /etc/init.d/kdm forcereload (instead of force-reload). _initd completion script has a list of possible arguments, finds=20 matching lines and deletes everything except : [^a-z_] It finds "force-reload" well, but then removes the dash in that token. When using [^-a-z_], problem seems to be solved. Here is my solution as a patch arno Index: Completion/Unix/Command/_init_d =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_init_d,v retrieving revision 1.6 diff -r1.6 _init_d 18c18 < cmds=3D( ${${(j:|:s:|:)${(M)${(f)"$(< $script)"}:#[[:blank:]]#(\'|)${= ~what}(\|${~what})#(\'|)\)}}//[^a-z_]} ) --- > cmds=3D( ${${(j:|:s:|:)${(M)${(f)"$(< $script)"}:#[[:blank:]]#(\'|)${= ~what}(\|${~what})#(\'|)\)}}//[^-a-z_]} ) --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFKuhniH9aBScBsrMRAizCAJ9C1q4EnQkF+hlBL+LfqTbN6y860gCfQkYB bS3hwXI1wsr9SYCklRBLuxI= =DHOq -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--