projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda8521
)
trace: fix a regex portability problem
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 11 Sep 2010 10:43:39 +0000
(10:43 +0000)
committer
Blue 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
patch
|
blob
|
history
diff --git
a/tracetool
b/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"
}