From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29362 invoked by alias); 19 Mar 2015 07:32:54 -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: 20023 Received: (qmail 29988 invoked from network); 19 Mar 2015 07:32:43 -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,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:subject:message-id :mime-version:content-type; s=mesmtp; bh=cqn1ZxEs+Ev96Uo7XrIb9xz WIrc=; b=W3qMqcHMcPKSpTGuWAbCArUxJoCx3TEsbJNmGF33eJ4dUihFqFxrMlH bJFhtPyfF/WvR5Z3OqK+Ls773+7EJeAqnDgHic80lliKcK+RH1m2n5r1ek0PwiNU yH7s4pUdEm0edJ3P0Q1HqqcGUyN5tbdUO/WzPmueELxwsKLI7XV0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:subject :message-id:mime-version:content-type; s=smtpout; bh=cqn1ZxEs+Ev 96Uo7XrIb9xzWIrc=; b=QJjCo5bqr0/VMekTS+RyiHSdcnPSNrO88XEGW66ZUne 4WvUVREBf//pqpYurJVaDy4bGzASQdqajaQykkKiHbU0eiDPUKB+FeFb2Eh3T0fv rk6uMFAjKuG23h0fym7QgZRYbPmmtwiUvgE7OUQNi0BLTG+XjJeDDIR4dibrmPkM = X-Sasl-enc: yka3JPyXuPpBqfQFeQMlypzN5OGlEwiC5Zatu4YUUANx 1426750360 Date: Thu, 19 Mar 2015 07:32:38 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: GLOB_COMPLETE and numbered directories Message-ID: <20150319073238.GN3548@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 ;). Cheers, Daniel