From ae0bbee310e1e81996d5ed88cddf62d46f619e93 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Thu, 25 Apr 2013 15:07:18 +0000 Subject: [PATCH] [dunecontrol] fix incompatibility with mawk - explicitly state list of whitespaces - patch by Ansgar Burchardt [[Imported from SVN: r7452]] --- COPYING | 2 +- lib/dunemodules.lib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/COPYING b/COPYING index 0254c6e8b..53e3be281 100644 --- a/COPYING +++ b/COPYING @@ -2,7 +2,7 @@ Copyright holders: 2003--2010 Peter Bastian 2004--2012 Markus Blatt -2011--2012 Ansgar Burchardt +2011--2013 Ansgar Burchardt 2004--2005 Adrian Burri 2006--2012 Andreas Dedner 2003 Marc Droske diff --git a/lib/dunemodules.lib b/lib/dunemodules.lib index 67b9aaa32..2039fe988 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(/^[[:space:]]+| +$/,\"\");printf(\"%s\", \$0);}'" +PARSER_TRIM="awk '{gsub(/^[ \\t]+|[ \\t]+$/,\"\");printf(\"%s\", \$0);}'" parse_control() { # check file existence if test ! -f "$1" -o "$(basename $1)" != "$CONTROL"; then -- GitLab