Skip to content

Commit 030d555

Browse files
committed
strace-log-merge: fix file suffix calculation
* strace-log-merge: Quote file prefix to fix file suffix calculation. Reported-by: Denys Vlasenko <[email protected]> Suggested-by: Andreas Schwab <[email protected]>
1 parent df79013 commit 030d555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strace-log-merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ logfile=$1
2525

2626
for file in "$logfile".*; do
2727
[ -f "$file" ] || continue
28-
suffix=${file#$logfile.}
28+
suffix=${file#"$logfile".}
2929
[ "$suffix" -gt 0 ] 2> /dev/null ||
3030
continue
3131
pid=$(printf "%-5s" $suffix)

0 commit comments

Comments
 (0)