Permalink
Browse files

fix parentisis escaping for mawk

  • Loading branch information...
1 parent d273801 commit f2e427f8f66c9e7b0588bc15a94c17879d8a5984 @mpapis mpapis committed Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/internal/shell/variables/file/functions
@@ -18,7 +18,7 @@ __sm_variables_file_read_one()
eval "${2//-/_}=( \$(sed '/^$2=/! d; s/^$2=(//; s/)$//' < \"\$1\") )"
;;
($2=\(*)
- eval "${2//-/_}=( \$(awk 'BEGIN {m=0} /^$2=/ {m=1; sub(/^$2=\(/,\"\");} /^)/ {m=0;} m==1 {print;}' < \"\$1\") )"
+ eval "${2//-/_}=( \$(awk 'BEGIN {m=0} /^$2=/ {m=1; sub(/^$2=\(/,\"\");} /^\)/ {m=0;} m==1 {print;}' < \"\$1\") )"
;;
($2=*)
eval "${2//-/_}=\"\$(sed '/^$2=/! d; s/^$2=//' < \"\$1\")\""

0 comments on commit f2e427f

Please sign in to comment.