Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

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@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author