From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20431 invoked by alias); 15 May 2011 18:20:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29300 Received: (qmail 27439 invoked from network); 15 May 2011 18:20:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wovpkBURQ+9aq5ookO1FCB0Zwq8PuOZ7e0aF5DjAcI8=; b=GA95wZm4G6auvmhhUvl+N2LtChfA5ZhFqerW8LgYqZh3FfPx08YcQdrzi5KqCL/M1O FADLwPyRXanPqxhgMalIIYoEufNhxkOecSaIpNnYsP7s2bacp3fPK3EdcO/mX+aTbBX9 jEvyaYFoZlGRjpjRSJS/joA4xxmQskiW82qeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=t9jL9+f+KkrVIMNemmYPrBWnSdT9jX3jwrgQ90sJ3QV88CLotxA+gY9s4teVrDUlCo gDcNrNsZRVCy7upr47XKhDvw549goe+C5E/VHYrwPun1By1mFIdDHI+Il/tIuZT91FkE bKipltLMsqcFwe5EV5pUi7FbStKkp+izhjB74= MIME-Version: 1.0 In-Reply-To: <110515111503.ZM8331@torch.brasslantern.com> References: <20110513191710.657d2f61@pws-pc.ntlworld.com> <20110513195324.6ab90eb2@pws-pc.ntlworld.com> <110513225805.ZM13712@torch.brasslantern.com> <110514183850.ZM15129@torch.brasslantern.com> <110515111503.ZM8331@torch.brasslantern.com> Date: Sun, 15 May 2011 20:20:18 +0200 Message-ID: Subject: Re: PATCH Re: squeeze-slashes false not working? From: Mikael Magnusson To: Bart Schaefer Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 15 May 2011 20:15, Bart Schaefer wrote: > On May 15, 12:12pm, Mikael Magnusson wrote: > } Subject: Re: PATCH Re: squeeze-slashes false not working? > } > } On 15 May 2011 03:38, Bart Schaefer wrote: > } > This change doesn't fix it for me. If I apply your patch and then set > } > accept-exact-dirs yes, then //// completes things in the root between > } > the first and second slashes, but I'm back to /home/// being treated > } > as /home/. There must be something else going on. > } > } No idea what then. With /// (//// takes a bit too long), I get all > } sorts of stuff completed, dev/disk/by-label/, proc/sys/debug/ etc. > > Are you starting from zsh -f and setting ONLY the accept-exact-dirs > zstyle? Or are you referring to what happens with your full .zshrc? Oops, that was with my full .zshrc, with zsh -f I get your results. > } > As an additional observation, even without your patch if I do this: > } > > } > % mkdir /tmp/ff /tmp/ffzz > } > % ls //ff/ > } > > } > I get silent failure. It completes /tmp if either I leave off the > } > trailing slash, or if there is at least one file in one of the > } > directories. I can't tell if this is the expected behavior or not. > } > } ---- no match for: `arg', `directories', `file', or `corrections' > > Yes, again I'm in zsh -f so I don't have any descriptions set up. This > is what I suspected was the cause. > > What's confusing is that if the slash is auto-appended and therefore > auto-removable, pressing TAB after the trailing slash works the same > as in the case where you start with no trailing slash. -- Mikael Magnusson