The basepath may contain special characters, which would confuse the regex matcher. ${var#prefix} does the right thing.
Showing the changes to scripts/decode_stacktrace.sh (1 of 1 file). Show all
Unified · Split
| @@ -85,7 +85,7 @@ parse_symbol() { · 84 unmodified lines | ||
| 85 | 85 | fi |
| 86 | 86 | |
| 87 | 87 | # Strip out the base of the path |
| 88 | − code=${code//^$basepath/""} | |
| 88 | + code=${code#$basepath/} | |
| 89 | 89 | |
| 90 | 90 | # In the case of inlines, move everything to same line |
| 91 | 91 | code=${code//$'\n'/' '} |