From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3946 invoked from network); 16 Aug 2000 12:27:49 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Aug 2000 12:27:49 -0000 Received: (qmail 7153 invoked by alias); 16 Aug 2000 12:22:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12663 Received: (qmail 7146 invoked from network); 16 Aug 2000 12:22:10 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "ZSH workers mailing list" Subject: RE: Patterns in parameter substitution and quoting weirdness Date: Wed, 16 Aug 2000 16:21:55 +0400 Message-ID: <000a01c0077c$912b7f60$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <000901c0077a$fbc15590$21c9ca95@mow.siemens.ru> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > bor@itsrm2% foo[a\?]=a\?_val > bor@itsrm2% print ${(v)foo[(I)a?]} > bor@itsrm2% print ${(v)foo[(I)a\?]} > <= ... it is quoted by \ or '...' Sorry, the problem is, of course, that I expect it to print `a?_val'. > > bor@itsrm2% bar='a?b' > bor@itsrm2% print ${bar/a\?/ZZ} > ZZb <= sorry? While I can understand it, why it differs from the subscript? > bor@itsrm2% print "${bar/a?/ZZ}" > ZZb <= if the above is correct, this is correct as well Again, sorry - this is of course correct IF zsh behaves correctly and quotes `?' and not treats it as glob in both cases. I cannot devise test to check it currently. -andrej