]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - lib.sh
lib.sh: Fix m4() to work with arguments with spaces.
[config/dotfiles.git] / lib.sh
diff --git a/lib.sh b/lib.sh
index c1037be6d11d9f6496164076618e9f3cc06587f8..9e2308d6adf988de977116d7b28713e52c077fce 100644 (file)
--- a/lib.sh
+++ b/lib.sh
@@ -100,7 +100,7 @@ m4() {
     (echo "define(\`IF', \`ifelse(\`\$1', \`\$2',dnl')dnl
 define(\`FI', \`)dnl')dnl";
         # Run the file (and the default macros) through m4.
-        cat $file.m4) | $m4 $* >> $file
+        cat $file.m4) | $m4 "$@" >> $file
 
     unset file
 }