From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11536 invoked from network); 23 Aug 2008 07:25:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Aug 2008 07:25:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 83321 invoked from network); 23 Aug 2008 07:24:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Aug 2008 07:24:56 -0000 Received: (qmail 4233 invoked by alias); 23 Aug 2008 07:24:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25513 Received: (qmail 4217 invoked from network); 23 Aug 2008 07:24:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 23 Aug 2008 07:24:50 -0000 Received: from mail1.cnt.ru (mail1.cnt.ru [212.15.127.81]) by bifrost.dotsrc.org (Postfix) with ESMTP id 44DCF8030847 for ; Sat, 23 Aug 2008 09:24:47 +0200 (CEST) Received: from hell.devel.altlinux.ru (unknown [213.85.39.63]) by mail1.cnt.ru (Postfix) with ESMTP id 4DC1268CF2 for ; Sat, 23 Aug 2008 11:24:47 +0400 (MSD) Received: by hell.devel.altlinux.ru (Postfix, from userid 500) id 147A33600105; Sat, 23 Aug 2008 11:24:47 +0400 (MSD) Date: Sat, 23 Aug 2008 11:24:47 +0400 From: "Alexey I. Froloff" To: zsh-workers@sunsite.dk Subject: "pws non-canonical hack" problems Message-ID: <20080823072446.GM8612@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OGW1Z2JKiS9bXo17" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-29) X-Virus-Scanned: ClamAV 0.92.1/8076/Sat Aug 23 00:15:54 2008 on bifrost X-Virus-Status: Clean --OGW1Z2JKiS9bXo17 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am having problems with "pws non-caninical hack" in _path_files. Let me explain with screenshot: _path_files: 377 # pws non-canonical hack which seems to work so far... 378 # if we didn't match by globbing, check that there is 379 # something to match by explicit name. This is for 380 # `clever' filing systems where names pop into existence 381 # when referenced. 382 if (( ! $#tmp1 )); then 383 for tmp3 in "$tmp2[@]"; do 384 if [[ -n $tmp3 && $tmp3 !=3D */ ]]; then 385 tmp3+=3D/ 386 fi 387 if [[ -e "$tmp3${(Q)PREFIX}${(Q)SUFFIX}" ]] then 388 tmp1+=3D("$tmp3${(Q)PREFIX}${(Q)SUFFIX}") 389 fi 390 done 391 fi When I completing directory, sometimes file is being completed. $ touch foo foobar $ cd fo Sorry. No match for: `local directory' $ cd foo $ cd foo (file name is completed) $ touch foo ---- file ---- foo foobar $ zstyle ':completion:*' list-dirs-first true $ touch foo ---- directories ---- foo ---- file ---- foo foobar I think I can forge more examples where this code will fail. Can it be controlled via zstyle, please, so anyone can turn this off? --=20 Regards, Sir Raorn. --OGW1Z2JKiS9bXo17 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIr7s7VqT7+fkT8woRAj7NAJ40bvMaD35zPKTJzCJdfHeWa0SH9ACfSGGI qjuE9sElo3xrE9tM/d70tLc= =oEcD -----END PGP SIGNATURE----- --OGW1Z2JKiS9bXo17--