From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18891 invoked by alias); 21 Aug 2012 04:58:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17210 Received: (qmail 2946 invoked from network); 21 Aug 2012 04:58:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120820215819.ZM13320@torch.brasslantern.com> Date: Mon, 20 Aug 2012 21:58:19 -0700 In-reply-to: =?iso-8859-1?Q?=3C503206C8=2E5050408=40necoro=2Eeu=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_Ren=E9_Neumann_=3Clists=40necoro?= =?iso-8859-1?Q?=2Eeu=3E?= =?iso-8859-1?Q?________=22Re=3A_Recursive_Completition=22_=28Aug_20=2C_11?= =?iso-8859-1?Q?=3A43am=29?= References: <120818171826.ZM18675@torch.brasslantern.com> <503206C8.5050408@necoro.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Recursive Completition MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable On Aug 20, 11:43am, Ren=E9 Neumann wrote: } Subject: Re: Recursive Completition } } Am 19.08.2012 02:18, schrieb Bart Schaefer: } > setopt globcomplete } >=20 } > Now when you try } >=20 } > ls **/Kern[tab] } >=20 } > the completion system behaves as if you'd inserted a * just before [tab= ], } > and offers you the list of matching items as choices. }=20 } Really? I tried this, and noticed you still have to enter the * before } the [tab]. Hmm, interesting. I didn't try it for a sufficiently deep directory hierarchy. Completion seems to treat **/ as just */ -- only expansion does the full recursive thing. Looking more closely, completion splits **/Kern into "**" and "Kern" and tries to find completions for ** first. Because the slash has been removed, ** loses its special meaning. So it really does need somethng like PWS's recent proposed patch. Or else further surgery to _path_files, which is already a bit of a Frankenstein's monster.