[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-77-g6a713c3

Ville Skyttä ville.skytta at iki.fi
Sat Nov 26 22:26:59 UTC 2011


The following commit has been merged in the master branch:
commit 6a713c316f64197b2e535ce85679c1f9f5b1824e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Nov 27 00:26:00 2011 +0200

    _muttconffiles: Use printf instead of echo (Alioth: #312163).

diff --git a/completions/mutt b/completions/mutt
index e840a4a..acab9c8 100644
--- a/completions/mutt
+++ b/completions/mutt
@@ -57,7 +57,7 @@ _muttconffiles()
     sofar=" $1 "
     shift
     while [[ "$1" ]]; do
-        newconffiles=( $(sed -n 's|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' $(eval echo $1) ) )
+        newconffiles=( $(sed -n 's|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' $(eval printf %s $1) ) )
         for file in "${newconffiles[@]}"; do
             __expand_tilde_by_ref file
             [[ ! -f "$file" || $sofar == *\ $file\ * ]] && continue

-- 
bash-completion



More information about the Bash-completion-commits mailing list