From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2881 invoked by alias); 19 Mar 2015 09:16:07 -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: 20025 Received: (qmail 23815 invoked from network); 19 Mar 2015 09:16:05 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7DuZUxy9zSLte+gO+qbIyoAi5lW+c0d3bTswj4GOzXs=; b=x56G3i4zTLD0Y/92owz+hk1rj1c/TxSw1jXuVQk1AAzHnv0fLJWEd4GnbSfReSSvU7 76zAEYmT9kc2x661QMMBH2zv78/BR9JcaGpkFQUaPlW4q7liCVB0ooAQbGhq2ggL11cp 24UXILSD6eN253Xd4Fg6/Bb9+Y5H2EFnn2YaNIAx6Rnm3E23zgNxt3TXDW9MVr+iVacL ajaRcR9/g/D5wV8ttoLvh+xh1mA64Rj6t/wrwBGXsX9mvIG2cb0lqls98b4Y60n1ysn5 K5twVqftBupsx/iDa15wQ0Dkm+Wfbi5EbkYGxuBbTbgTV9ofXj6MXqZPfoHzJfoOwWdC C28A== MIME-Version: 1.0 X-Received: by 10.50.119.229 with SMTP id kx5mr14273447igb.42.1426756562479; Thu, 19 Mar 2015 02:16:02 -0700 (PDT) In-Reply-To: <20150319073238.GN3548@tarsus.local2> References: <20150319073238.GN3548@tarsus.local2> Date: Thu, 19 Mar 2015 10:16:02 +0100 Message-ID: Subject: Re: GLOB_COMPLETE and numbered directories From: Mikael Magnusson To: Daniel Shahaf Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Mar 19, 2015 at 8:32 AM, Daniel Shahaf wrote: > Consider the following: > > % zsh -f > % autoload compinit && compinit > % setopt globcomplete > % find > . > % mkdir -p {bar,baz}/iota > % cat b/i > [cycles between 'cat ba/iota', 'cat bar/iota/', 'cat baz/iota/'] > > The above works as expected. However, if the directory names are > different, completion behaves differently: > > % rm -rf bar baz > % mkdir -p {10a,11a}/iota > % cat 1/i > [press ] > % cat 1a/iota > [press ] > % cat 1a/iota > [stays the same upon pressing TAB] > > I expected the second press to offer me the possible completions > '10a' '11a'. I'd at least like not to be left with "1a/iota" > since "1a" is not a possible completion or an existent directory, and > with the cursor far from the "1a" fixing the erroneous path requires too > much effort ;). Are you sure the difference isn't because your differing character is now not the last character of the directory name? -- Mikael Magnusson