projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f0fabfd
)
Change regex to be a bit more friendly against various
Artur Bergman [Fri, 21 Feb 2003 09:08:30 +0000 (09:08 +0000)]
outputs from ps -f, regex suggest by rgs
p4raw-id: //depot/perl@18759
ext/threads/t/join.t
patch
|
blob
|
blame
|
history
diff --git
a/ext/threads/t/join.t
b/ext/threads/t/join.t
index
255704c
..
28be717
100644
(file)
--- a/
ext/threads/t/join.t
+++ b/
ext/threads/t/join.t
@@
-105,7
+105,7
@@
if ($^O eq 'linux') { # We parse ps output so this is OS-dependent.
while (<PS>) {
s/\s+$//; # there seems to be extra whitespace at the end by ps(1)?
print "# $_\n";
- if (/^\S+\s+$$\s.+\sfoobar$/) {
+ if (/\b$$\b.+\bfoobar\b/) {
$ok++;
last;
}