From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9144 invoked from network); 2 Jun 1999 08:46:22 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jun 1999 08:46:22 -0000 Received: (qmail 11784 invoked by alias); 2 Jun 1999 08:46:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6434 Received: (qmail 11777 invoked from network); 2 Jun 1999 08:46:05 -0000 From: "Andrej Borsenkow" To: "Peter Stephenson" , "Zsh hackers list" Subject: sh compatibility RE: PATCH: pws-19: document minor syntactic innovation Date: Wed, 2 Jun 1999 12:44:50 +0400 Message-ID: <002c01beacd4$2d055140$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.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 In-Reply-To: <9906020803.AA37683@ibmth.df.unipi.it> > > This is the patch below; ${"foo"%bar} will now work. There are still > probably lots of other possible places, but I don't think it's worth > searching for them; if it seems sensible to allow quotes there, someone > will notice at some point. > How compatible with shell is it? bor@itsrm2:~%> foo=bar bor@itsrm2:~%> print $"foo" $foo bor@itsrm2:~%> print ${"foo"} bar bor@itsrm2:~%> print ${"bar":-com} but bor@itsrm2:~%> /sbin/xpg4/sh (for what it's worth :-) $ foo=bar $ print $"foo" $foo $ print ${"foo"} /sbin/xpg4/sh: ${"foo"}: bad substitution $ print ${"bar":-com} /sbin/xpg4/sh: ${"bar":-com}: bad substitution