From aab73f935623eb4fca22a2a306a1abdbba3d9f78 Mon Sep 17 00:00:00 2001 From: Dmitry Samersoff Date: Mon, 27 Jan 2014 15:11:56 +0400 Subject: [PATCH] 8024049: com/sun/jdi/ProcessAttachTest.sh shortens 7-digit pid to 6-digit Replace cut call to awk Reviewed-by: sla, olagneau --- jdk/test/com/sun/jdi/ProcessAttachTest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/test/com/sun/jdi/ProcessAttachTest.sh b/jdk/test/com/sun/jdi/ProcessAttachTest.sh index 10b5d503154..76a531bad38 100644 --- a/jdk/test/com/sun/jdi/ProcessAttachTest.sh +++ b/jdk/test/com/sun/jdi/ProcessAttachTest.sh @@ -87,7 +87,7 @@ startDebuggee() # "java" process. if [ "$OS" = "Windows" ]; then sleep 2 - pid=`ps -o pid,ppid,comm|grep ${startpid}|grep "java"|cut -c1-6` + pid=`ps -o pid,ppid,comm | awk '/${startpid}.+java/{ print $1 }'` fi echo "Waiting for Debuggee to initialize..."