strace-log-merge: fix file suffix calculation
* strace-log-merge: Quote file prefix to fix file suffix calculation. Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Suggested-by: Andreas Schwab <schwab@linux-m68k.org>
This commit is contained in:
parent
df790130ff
commit
030d555ce5
@ -25,7 +25,7 @@ logfile=$1
|
||||
|
||||
for file in "$logfile".*; do
|
||||
[ -f "$file" ] || continue
|
||||
suffix=${file#$logfile.}
|
||||
suffix=${file#"$logfile".}
|
||||
[ "$suffix" -gt 0 ] 2> /dev/null ||
|
||||
continue
|
||||
pid=$(printf "%-5s" $suffix)
|
||||
|
Loading…
Reference in New Issue
Block a user