Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Remind me why ${name+word} is the way it is?
- X-seq: zsh-workers 39979
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Remind me why ${name+word} is the way it is?
- Date: Wed, 16 Nov 2016 21:34:32 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PW7gXhbAoxuRkjSZcPOGkLp3UBLBs5z23v85pEo3t1Y=; b=l06qolssebsikzrJ9qq6ARDmK4SflwCy4y15BeGPA2p9FL4j6EQ9Pw/ByCb7llvw0q uWRth+bxhoRPILfu9Ar9Dh014ehqa09GGMzqnzv9nUW/jKVa2TLa1RcSRv2JVUUOAfDn s89QstUpN974lC4rlgoKd8J9v8r0Grj2i5Po6lthG1j5cUy0vPYoKWXEbl4uED/iecqk RJ2qfEay2Jy4Syf0E0uErYq8RJyLClZgFEN18UE9B/9ZdMoGZ2PmOSKmsToOoH3q6fyT UCesfyaS/Nnci8GpiUFNdx72RR9spxNzEc2bitc047hiOcFXSFwMuyKY4nT1lY5VgFwJ tcEw==
- In-reply-to: <20161117023325.GA3324@localhost.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <161111203400.ZM31567@torch.brasslantern.com> <20161117023325.GA3324@localhost.localdomain>
On Wed, Nov 16, 2016 at 6:33 PM, Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
>
> % name=a;echo ${name:+foo[bar]}
> zsh: no match
> %
> url-quote-magic:10: no match
What zsh version are you using? I can't reproduce this (tried 5.2 and
git HEAD).
Line 10 is
words=("${(@Q)${(z)lbuf}}")
To get the "no match" message you have to have cshnullglob set, and
obviously you also have self-insert remapped to url-quote-magic. I
suspect you have another setting that is influencing this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author