Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Replacing sed for zsh portability
- X-seq: zsh-users 9315
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Replacing sed for zsh portability
- Date: Mon, 15 Aug 2005 12:39:40 +0200
- In-reply-to: <20050815103557.GA1411@DervishD>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050815103557.GA1411@DervishD>
Hi all :)
Sorry for self replying... again.
* DervishD <zsh@xxxxxxxxxxxx> dixit:
> Another question, related to this. It seems that the X|Y glob
> operator doesn't work left-to-right, but shortest-first. If I do
> this:
>
> print ${line#\#(<=|=>| |)}
I've tried to be a bit less stupid and use the correct form:
print ${line##\#(<=|=>| |)}
Obviously that zsh will use the shortest-first match if
instructed to do so. Sorry for the noise, I didn't noticed I was
using "#" instead of "##".
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author