projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ce4bb8
)
t/op/magic.t on FreeBSD
author
Slaven Rezic
<slaven@rezic.de>
Fri, 4 Jul 2003 00:35:51 +0000
(
02:35
+0200)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 3 Jul 2003 21:31:47 +0000
(21:31 +0000)
Message-Id: <
200307032235
.h63MZpKY036791@vran.herceg.de>
p4raw-id: //depot/perl@19971
t/op/magic.t
patch
|
blob
|
history
diff --git
a/t/op/magic.t
b/t/op/magic.t
index
545d34b
..
f55630a
100755
(executable)
--- a/
t/op/magic.t
+++ b/
t/op/magic.t
@@
-292,7
+292,9
@@
else {
my $mydollarzero = sub {
my($arg) = shift;
$0 = $arg if defined $arg;
- my $ps = `ps -o command= -p $$`;
+ # In FreeBSD the ps -o command= will cause
+ # an empty header line, grab only the last line.
+ my $ps = (`ps -o command= -p $$`)[-1];
return if $?;
chomp $ps;
printf "# 0[%s]ps[%s]\n", $0, $ps;