From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1411 invoked from network); 28 May 2001 15:31:12 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 May 2001 15:31:12 -0000 Received: (qmail 13289 invoked by alias); 28 May 2001 15:31:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14508 Received: (qmail 13266 invoked from network); 28 May 2001 15:30:59 -0000 From: "Bart Schaefer" Message-Id: <1010528153001.ZM5262@candle.brasslantern.com> Date: Mon, 28 May 2001 15:30:01 +0000 In-Reply-To: <000501c0e73a$7d490230$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: ${...-...} vs ${...:-...}" (May 28, 9:53am) References: <000501c0e73a$7d490230$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH Workers Mailing List" Subject: Re: ${...-...} vs ${...:-...} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 28, 9:53am, Andrej Borsenkow wrote: } Subject: RE: ${...-...} vs ${...:-...} } } > } bor@itsrm2% print ${(%)-%l} } > } 5679KNTXYZhims } > } > ${(%)-%l} is ${-} is $- is the option flags. I can see why this might be } > baffling, but I don't know what else zsh ought to do. } > } Hmm ... output an error message? I mean, ${(...)-} is an $-; but } ${-blablabla} does not lool like it. But ${-blablabla} does print an error message: zsh: bad substitution The problem with ${(%)-%l} is the leading % sign in the stuff after the parameter name. Would you expect ${(%)foo%l} to print an error message? } Or interpret it as the ${...:-...}? No, that would be wrong too. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net