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:
Дмитрий Левин 2012-03-26 12:10:01 +00:00
parent df790130ff
commit 030d555ce5

View File

@ -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)