Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: cd auto-completion of .. fails with parentheses in directory name
- X-seq: zsh-workers 39787
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Bug: cd auto-completion of .. fails with parentheses in directory name
- Date: Mon, 31 Oct 2016 03:22:32 +0000
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=iDxzSb/6ZMiKjnf MHgJEuQJZugo=; b=Mrr6rqvulTC3nIRvju955O5WTdYS59h5Z04+KJGDNART/rk Zw56tHHyNVWtCwEynEkq/Y3mrCiOrvMO5BeLZGGME9UQPXiIfLuKrR6nfQ8gXUnj wXbS7otKwP4gnHQG2/KyIZI4X6SCbgJrUoOUfhlg6A8sz6eXPiFOZH9PMPZY=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=iDxzSb/6ZMiKjn fMHgJEuQJZugo=; b=MWxfjnn9y02Dd+Ye547AoMP3t83SEL4Plkkhmax0Y9iJWS VFFZLihZrtGnw9lZXty61w5oxG/CG47UyehXZ3Bo3TOhX9PYgLkj1XgvmLdeaoVZ tn6w3xVaE3mdhFF7/i5cvlQiViQ0STy/XcB6Y9Tiz7rbPdahZ/wfOn7k3Q//Y=
- In-reply-to: <20161029193943.7e2ed791@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAPnWG_TR7DC7h36m-jp6PnuY=M4ViwwWNMtaT9aU4wawygzoBg@mail.gmail.com> <20160922144250.GA11076@fujitsu.shahaf.local2> <160922103042.ZM7407@torch.brasslantern.com> <CAHYJk3QmMUr0_C0-aAMYCNsmeXuo14JzVXwuimBk05meeX88wA@mail.gmail.com> <20161028151037.GA10483@fujitsu.shahaf.local2> <20161029180632.GA18192@fujitsu.shahaf.local2> <20161029193943.7e2ed791@ntlworld.com>
Peter Stephenson wrote on Sat, Oct 29, 2016 at 19:39:43 +0100:
> The first step to getting this under control is probably tests. There
> are some Y01completion tests involving files. A few with more exotic
> characters plus variables wouldn't hurt.
For starters here's a test for the problem reported at the start of the
thread. I've verified that it fails when 39412 is reverted.
From e5e7ceb76dd03a4eccad923625530f0d3e658ab1 Mon Sep 17 00:00:00 2001
From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2016 03:17:20 +0000
Subject: [PATCH] Add a regression test for 39412.
---
Test/Y01completion.ztst | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index 1568369..b3f8be4 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -77,6 +77,16 @@ F:regression test workers/32182
>FI:{file2}
F:regression test workers/31611
+ {
+ mkdir 'A(B)' 'A(B)/C'
+ comptesteval 'cd "A(B)/C"'
+ comptest $'cd ../\t'
+ } always {
+ rmdir 'A(B)/C' 'A(B)'
+ }
+0:directory name is not a glob qualifier
+>line: {cd ../C/}{}
+
%clean
zmodload -ui zsh/zpty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author