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

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'/' '}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t