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
85 fi85 fi
86 86
87 # Strip out the base of the path87 # Strip out the base of the path
88 code=${code//^$basepath/""}88 code=${code#$basepath/}
89 89
90 # In the case of inlines, move everything to same line90 # In the case of inlines, move everything to same line
91 code=${code//$'\n'/' '}91 code=${code//$'\n'/' '}