From fdf83d84c09a58b14f58fde43e293ec0330f5869 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Jun 2018 18:20:05 +0200 Subject: [PATCH] lib.sh: escape \b in double quoted string Just a warning from shellcheck, but lets fix it. --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index 0329a0f..12c9b08 100644 --- a/lib.sh +++ b/lib.sh @@ -101,7 +101,7 @@ simple_cpp() { break fi - cmd="$cmd s/\b$x\b/\$ARGV[\$i]/g; \$i++;" + cmd="$cmd s/\\b$x\\b/\$ARGV[\$i]/g; \$i++;" done perl_line_filter "$cmd" -- "$@" -- 2.45.2