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 b74b630..534cc70 100755 (executable)
--- a/tracetool
+++ b/tracetool
@@ -39,7 +39,7 @@ get_args()
 {
     local args
     args=${1#*\(}
-    args=${args%)*}
+    args=${args%\)*}
     echo "$args"
 }