zsh-workers
 help / color / mirror / code / Atom feed
* Regexp type pattern matching
@ 2008-05-08  8:48 Jerry Rocteur
  2008-05-08  9:00 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Jerry Rocteur @ 2008-05-08  8:48 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-08  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-08  8:48 Regexp type pattern matching Jerry Rocteur
2008-05-08  9:00 ` Peter Stephenson
2008-05-08  9:09   ` Jerry Rocteur
2008-05-08  9:50     ` Stephane Chazelas

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).