From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18364 invoked from network); 21 Mar 2001 14:57:51 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Mar 2001 14:57:51 -0000 Received: (qmail 16297 invoked by alias); 21 Mar 2001 14:57:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3713 Received: (qmail 16280 invoked from network); 21 Mar 2001 14:57:32 -0000 Date: Wed, 21 Mar 2001 15:57:31 +0100 (MET) Message-Id: <200103211457.PAA02749@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.dk In-reply-to: Adam Spiers's message of Wed, 21 Mar 2001 14:23:03 +0000 Subject: Re: non-greedy matching? Adam Spiers wrote: > ... > > Any ideas? No (I'm still worried about what I wrote in the other mail to -workers), but: > The only alternatives I've come up with are: > > foo=$(print -P "$prompt_string") No need for that extra sub-shell there, use ${(%):-$prompt_string} or ${(%%):-...} depending on what you want... Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de