From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15702 invoked by alias); 7 Sep 2011 15:54:53 -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: 16324 Received: (qmail 19397 invoked from network); 7 Sep 2011 15:54:49 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at iki.fi designates 80.83.7.53 as permitted sender) From: Hannu Koivisto To: Nikolai Weibull Cc: "Zsh Users' List" Subject: Re: Completing UNC paths in Windows/Cygwin References: <834o0pd0m9.fsf@kalahari.s2.org> <83y5y0bryf.fsf@kalahari.s2.org> Mail-copies-to: nobody Date: Wed, 07 Sep 2011 18:54:42 +0300 In-Reply-To: (Nikolai Weibull's message of "Wed, 7 Sep 2011 11:58:37 +0200") Message-ID: <83r53sbb5p.fsf@kalahari.s2.org> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: azure@iki.fi X-SA-Exim-Scanned: No (on kalahari.s2.org); SAEximRunCond expanded to false Nikolai Weibull writes: > 2011/9/7 Hannu Koivisto : >> //machine/share/directory/f doesn't work either for me. > > Try setting the accept-exact-dirs zstyle and see if that helps. It does indeed fix //machine/share/directory/f and //machine/C\$/directory/f but //machine/C\$/ just causes the shell to get stuck forever (Ctrl-C helps), just like //machine/ (I guess that one is not surprising as it would probably require some special code for listing shares). I have also observed that Program\ Files\ \(x86\)/ fails if accept-exact style is true. Without the parentheses it doesn't fail. It turns out that setting accept-exact-dirs to true in addition to accept-exact fixes that case. Admittedly I don't really understand accept-exact, even after reading the documentation. For some reason I no longer remember I have copy&pasted it to my .zshrc's Windows/Cygwin specific section in addition to zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' (which I believe I understand). Am I supposed to set accept-exact-dirs to true if accept-exact is true? Is there something that zsh could do so that users wouldn't have to set accept-exact-dirs in order to have //machine/foo/bar/ work? -- Hannu