From 5c78f2753ec4e7f3ab6b917592145bf86df6b3c5 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Sun, 8 Jul 2012 21:47:38 +0000 Subject: [PATCH] [dunecontrol] fix whitespace match for awk [[Imported from SVN: r6827]] --- lib/dunemodules.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dunemodules.lib b/lib/dunemodules.lib index 65e17e935..c71c86d94 100644 --- a/lib/dunemodules.lib +++ b/lib/dunemodules.lib @@ -43,7 +43,7 @@ BLANK="$space$tab" # paramters: # $1 file to read # -PARSER_TRIM="awk '{gsub(/^ +| +$/,\"\");printf(\"%s\", \$0);}'" +PARSER_TRIM="awk '{gsub(/^[[:space:]]+| +$/,\"\");printf(\"%s\", \$0);}'" parse_control() { # check file existence if test ! -f "$1" -o "$(basename $1)" != "$CONTROL"; then -- GitLab