History

scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing.

Nicolas Boichat committed 7 years ago

Commit 31013831 parent a760f8a1 file · +1 −1Browse files

Showing the changes to scripts/decode_stacktrace.sh (1 of 1 file). Show all

Unified · Split

scripts/decode_stacktrace.sh+1−1
@@ -85,7 +85,7 @@ parse_symbol() { · 84 unmodified lines
8585 fi
8686
8787 # Strip out the base of the path
88− code=${code//^$basepath/""}
88+ code=${code#$basepath/}
8989
9090 # In the case of inlines, move everything to same line
9191 code=${code//$'\n'/' '}