From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12637 invoked by alias); 23 Nov 2016 21:22:22 -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: X-Seq: 40001 Received: (qmail 23990 invoked from network); 23 Nov 2016 01:27:10 -0000 X-Qmail-Scanner-Diagnostics: from mx0a-001b2d01.pphosted.com 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(148.163.156.1):SA:0(1.1/5.0):. Processed in 1.052411 secs); 23 Nov 2016 01:27:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=LONGWORDS,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: hanpt@linux.vnet.ibm.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Wed, 23 Nov 2016 09:26:50 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: Re: Remind me why ${name+word} is the way it is? Mail-Followup-To: zsh-workers@zsh.org References: <161111203400.ZM31567@torch.brasslantern.com> <20161117023325.GA3324@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112301-0024-0000-0000-00001516764F X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006126; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00784116; UDB=6.00378748; IPR=6.00561733; BA=6.00004903; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013411; XFM=3.00000011; UTC=2016-11-23 01:27:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112301-0025-0000-0000-0000465D156A Message-Id: <20161123012650.GA4241@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-22_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611230023 On Wed, Nov 16, 2016 at 09:34:32PM -0800, Bart Schaefer wrote: > On Wed, Nov 16, 2016 at 6:33 PM, Han Pingtian wrote: > > > > % name=a;echo ${name:+foo[bar]} > > zsh: no match > > % > > url-quote-magic:10: no match > Oh, I can still reproduce this problem by running name=a;echo ${name:+foo[bar]} two times. > What zsh version are you using? I can't reproduce this (tried 5.2 and > git HEAD). > I am using git HEAD, this problem can be reprodced. > 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. Yes, I have cshnullglob set and self-insert remapped. If I unset cshnullglob, then this problem cannot be reproduced any more. Those are all the options: % setopt autocd autopushd nobgnice braceccl completeinword cshnullglob extendedglob extendedhistory noglobalrcs globcomplete histexpiredupsfirst histfindnodups histignorespace histlexwords histsavenodups histverify incappendhistorytime interactive interactivecomments kshtypeset nolistambiguous magicequalsubst monitor pushdignoredups rcexpandparam rcquotes rmstarwait shinstdin zle Thanks.