From: Joel Rosdahl Date: Thu, 21 Jul 2016 08:19:55 +0000 (+0200) Subject: test: Try to fix sed syntax to fix build error X-Git-Tag: v3.3~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97caf7d45865c9dad32932af89d7826bf42764c2;p=thirdparty%2Fccache.git test: Try to fix sed syntax to fix build error travis-ci says sed: 1: "/^# 1 ""$ ...": command a expects \ followed by text but I fail to reproduce the error locally with GNU sed 4.2.2. --- diff --git a/test.sh b/test.sh index 5675bf6e0..29a0e1acf 100755 --- a/test.sh +++ b/test.sh @@ -2628,8 +2628,9 @@ if echo "\$*" | grep -- -D >/dev/null; then else # mistreat the preprocessor output in the same way as gcc6 does $COMPILER "\$@" | - sed -e '/^# 1 ""$/ a # 31 ""' \\ - -e 's/^# 1 "" 2$/# 32 "" 2/' + sed -e '/^# 1 ""\$/ a\\ +# 31 ""' \\ + -e 's/^# 1 "" 2\$/# 32 "" 2/' fi exit 0 EOF