From: Simon Ruderich Date: Sun, 3 Jun 2018 16:20:05 +0000 (+0200) Subject: lib.sh: escape \b in double quoted string X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=fdf83d84c09a58b14f58fde43e293ec0330f5869;p=config%2Fdotfiles.git lib.sh: escape \b in double quoted string Just a warning from shellcheck, but lets fix it. --- 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" -- "$@"