Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: non-greedy matching?
- X-seq: zsh-users 3713
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: non-greedy matching?
- Date: Wed, 21 Mar 2001 15:57:31 +0100 (MET)
- In-reply-to: Adam Spiers's message of Wed, 21 Mar 2001 14:23:03 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author