From 030d555ce5465b90881b0c79c6f54c7396df5f37 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 26 Mar 2012 12:10:01 +0000 Subject: strace-log-merge: fix file suffix calculation * strace-log-merge: Quote file prefix to fix file suffix calculation. Reported-by: Denys Vlasenko Suggested-by: Andreas Schwab --- strace-log-merge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strace-log-merge') diff --git a/strace-log-merge b/strace-log-merge index 14b3bf1..8ab2409 100755 --- a/strace-log-merge +++ b/strace-log-merge @@ -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) -- cgit v1.2.3