Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Non-escaped special chars from var expansion
- X-seq: zsh-workers 43757
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh list <zsh-workers@xxxxxxx>
- Subject: Re: Non-escaped special chars from var expansion
- Date: Sat, 3 Nov 2018 19:49:17 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1541274559; bh=fTBPJKJHHNJsDT/mrctm98deadqUuNoJ267S/DlIAkk=; h=Date:From:To:Subject:In-Reply-To:References; b=5h2AnXBQyLM/dZH5l6LnqeUHApHqubnyBR0xNPC27OmIPZhLnK/JaD2qv4dv2ppeq HFrBN9gkp1T2iEeUdVU0RrqIupcs0otzW7wsG7VIFuXad0I52c8v6PglumYukohbpF 4Yb3N4A0Y9x2a/iajUSBLc5ju55y4ZsXPj0K7gppu9/NHShE95C+O9Cjnm2BoKKq/t a+8i4DfgBUdpMikjgSyQXcN6/tRc6LTw144E3lSi2l50PY2l2RfJz0kggwziSoxTZj nmoN1Y0PKD3V7icYfPrFrr3S+4k/hThuv+bylDODxbs3O4lPLgInaYJbxPjQFXdWWv 5bmWGngH91fqg==
- In-reply-to: <20181102220657.396df24a@pws-HP.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHSx_Svj04+0L2Lcxymegscn9aG+fsuE6jnv7cQvD67oprE1mA@mail.gmail.com> <20181102220657.396df24a@pws-HP.localdomain>
On Fri, 2 Nov 2018 22:06:57 +0000
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> > bindkey '\t' complete-word
> > mkdir 'foo; bar (baz)'
> > cd !:1
> > cd $PWD<tab>
>
> (Whether the globbing should actually have worked is a question I
> haven't gone into. But I suspect it's not a problem --- the _expand
> function is trying lots of things not all of which will work.)
In case anyone cares --- no, the glob shouldn't have worked here because
it looks like a bad set of glob qualifiers ("unknown file atribute b").
Next problem is whether it's trying too hard to get glob compilation on
something that's expanded from a variable, without GLOB_SUBST set.
Strictly, I think that probably *is* a problem. In principle the
quoting should happen on the result of that expansion, and only
if was expanded (from a variable or command or whatever). I don't think
I'm going down that route myself, however.
Fix so far committed --- I will leave it at that.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author