]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
trace: fix a regex portability problem
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Sep 2010 10:43:39 +0000 (10:43 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Sep 2010 10:43:39 +0000 (10:43 +0000)
The /bin/sh in Milax has problems with the regex:
Error: invalid trace backend
Please choose a supported trace backend.

Fix it by escaping ')' like the regexes with '('.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tracetool

index b74b6301d2c63160caf316363ffd453547c74a11..534cc709f48179783cb9160768700e01957db04f 100755 (executable)
--- a/tracetool
+++ b/tracetool
@@ -39,7 +39,7 @@ get_args()
 {
     local args
     args=${1#*\(}
-    args=${args%)*}
+    args=${args%\)*}
     echo "$args"
 }