From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43757-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ae37bd3f for ; Sat, 3 Nov 2018 19:49:38 +0000 (UTC) Received: (qmail 16098 invoked by alias); 3 Nov 2018 19:49:26 -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: List-Unsubscribe: X-Seq: 43757 Received: (qmail 24269 invoked by uid 1010); 3 Nov 2018 19:49:25 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-10.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.74):SA:0(-2.0/5.0):. Processed in 2.188561 secs); 03 Nov 2018 19:49:25 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=Ipswjo3g c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=TxX-8yHsg6KpbxGNWLoA:9 a=CjuIK1q_8ugA:10 a=wW_WBVUImv98JQXhvVPZ:22 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== Date: Sat, 3 Nov 2018 19:49:17 +0000 From: Peter Stephenson To: Zsh list Subject: Re: Non-escaped special chars from var expansion Message-ID: <20181103194917.0ac70ef8@pws-HP.localdomain> In-Reply-To: <20181102220657.396df24a@pws-HP.localdomain> References: <20181102220657.396df24a@pws-HP.localdomain> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfLxA9gIOD6xzAg4f+jfBQ3/uOc6jP5IAHaBaIgeuPRjtlNvHG08aPDwvwtRU+MxTMSFG0Z0kVgWWHka2AGgvTf5zZ3lbO2ESMgoTBWK41f8T3O70HoGw 6JruOFYC9ibvGFuyCbnuPDPHXeWrN00A8U/MGaBob34Mciap8tU9HvnzhBfVBmWKaT9/aTyyNRVt5Q== On Fri, 2 Nov 2018 22:06:57 +0000 Peter Stephenson wrote: > > bindkey '\t' complete-word > > mkdir 'foo; bar (baz)' > > cd !:1 > > cd $PWD > > (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