Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Regexp type pattern matching
- X-seq: zsh-workers 24973
- From: "Jerry Rocteur" <macosx@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Regexp type pattern matching
- Date: Thu, 8 May 2008 10:48:13 +0200 (CEST)
- Importance: Normal
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
I'm runnign a script under Zsh 4.2.6 on Redhat
I'm spawning an egrep to do pattern matching:
if echo ${USER_NAME}|egrep -q "^[prt][0-9]"
But after a while this stops working and I get:
rt_sigsuspend(~[HUP CHLD RTMIN RT_1] <unfinished ...
I've tried to put brackets around it if (echo ${USER_NAME}|egrep -q "^[prt][0-9]")
But it still fails after a while.
From testing it happens after losts of spawning (The above script never failes under ksh).
I've tried to find examples but how do I do this pattern matching in zsh without using egrep:
if echo ${USER_NAME}|egrep -q "^[prt][0-9]"
I find lots of examples of pattern matching on files but how do i do the above in zsh with using egrep or perl etc. ?
Thanks in advance,
jerry
Messages sorted by:
Reverse Date,
Date,
Thread,
Author