trace: fix a regex portability problem

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>
This commit is contained in:
Blue Swirl 2010-09-11 10:43:39 +00:00
parent dda8521197
commit 2184d75b4a
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ get_args()
{
local args
args=${1#*\(}
args=${args%)*}
args=${args%\)*}
echo "$args"
}