From: DervishD <zsh@dervishd.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Replacing sed for zsh portability
Date: Mon, 15 Aug 2005 12:39:40 +0200 [thread overview]
Message-ID: <20050815103940.GA1468@DervishD> (raw)
In-Reply-To: <20050815103557.GA1411@DervishD>
Hi all :)
Sorry for self replying... again.
* DervishD <zsh@dervishd.net> 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...
next prev parent reply other threads:[~2005-08-15 10:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 10:35 DervishD
2005-08-15 10:39 ` DervishD [this message]
2005-08-15 11:22 ` Peter Stephenson
2005-08-15 20:21 ` DervishD
2005-08-16 15:40 ` Vincent Lefevre
2005-08-16 15:51 ` DervishD
2005-08-16 16:18 ` Vincent Lefevre
2005-08-16 16:34 ` Oliver Kiddle
2005-08-16 18:02 ` Vincent Lefevre
2005-08-16 16:54 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050815103940.GA1468@DervishD \
--to=zsh@dervishd.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).