This command used to be wrong because it contains a star. When shell
sees the star, it expands it, which is very wrong in our case. The test
somehow still passes, but sed spams the error message on the stderr,
which is unhelpful while debugging.
Change-Id: Ief9666698b7163e6b332bb5c7535cc6814abd50e
# filter out empty lines in "long" format
[ -z "$line" ] && continue
# filter out non-timestamp lines in "long" format
- if [ $format == "long" ] && [ "`echo "$line" | sed -re s/^\[[[:print:]]*\]$/line_ok/g`" != "line_ok" ]; then
+ if [ $format == "long" ] && [ "`echo "$line" | sed -re 's/^\[[[:print:]]*\]$/line_ok/g'`" != "line_ok" ]; then
continue
fi