From aa29a30426c9ab7511c7c88e7223645264209a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 23 Mar 2012 00:37:29 +0100 Subject: [PATCH] Fix cutting names of views containing spaces. --- 3rdparty/mmu_man/scripts/dumpwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/mmu_man/scripts/dumpwin.sh b/3rdparty/mmu_man/scripts/dumpwin.sh index a082e62743..9c8c9c6f3b 100755 --- a/3rdparty/mmu_man/scripts/dumpwin.sh +++ b/3rdparty/mmu_man/scripts/dumpwin.sh @@ -30,7 +30,7 @@ dumpview () { local C=0 while [ $C -lt $CNT ]; do - local INAME="$(hey "$APP" get InternalName of View $C of $1 Window $WIN | grep result | cut -d" " -f 7)" + local INAME="$(hey "$APP" get InternalName of View $C of $1 Window $WIN | grep result | sed 's/.* : //')" echo "$2:: View $C/$CNT ($INAME) ( View $C of ${1}Window $WIN )" # hey "$APP" get View $C of $1 Window $WIN | awk " { print \" $2\" \$0 } " # hey "$APP" getsuites of View $C of $1 Window $WIN | grep Label >/dev/null