From 9b06a9fcb594e8ea95e054fe30d5bc61d8a23703 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Thu, 21 Jul 2016 08:17:35 +0200 Subject: [PATCH] generic/294: Filter backquotes from mknod error output Really old versions of coreutils (mine are 8.12) quote a filename in the output with a backquote in the beginning and normal quote in the end. Improve _filter_mknod to handle that. Signed-off-by: Jan Kara Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/filter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/filter b/common/filter index 8d9f489b..b229a97d 100644 --- a/common/filter +++ b/common/filter @@ -389,7 +389,7 @@ _filter_od() # mknod errors print unquoted filenames _filter_mknod() { - sed -e "s/mknod: '\(.*\)': File exists/mknod: \1: File exists/" + sed -e "s/mknod: [\`']\(.*\)': File exists/mknod: \1: File exists/" } # make sure this script returns success -- 2.47.3