diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-12-20 23:44:59 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-12-20 23:46:47 +0200 |
commit | 2d4ebbaf25d324ad03e9f231ab7fe9ec55b259a7 (patch) | |
tree | a2da05971a4d311409201cfc53861150ae311121 /completions/mutt | |
parent | cd8dcff223a27cc0950cc377e450c32b2590edd3 (diff) | |
download | bash-completion-2d4ebbaf25d324ad03e9f231ab7fe9ec55b259a7.tar.gz |
Ignore muttrc source entries that are not files (Alioth: #312881).
Diffstat (limited to 'completions/mutt')
-rw-r--r-- | completions/mutt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/mutt b/completions/mutt index b8124f28..a753a652 100644 --- a/completions/mutt +++ b/completions/mutt @@ -58,7 +58,7 @@ _muttconffiles() while [[ "$1" ]]; do newconffiles=( $(sed -n 's|^source[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*$|\1|p' $(eval echo $1) ) ) for file in "${newconffiles[@]}"; do - [[ ! "$file" || "${sofar/ ${file} / }" != "$sofar" ]] && + [[ ! -f "$file" || "${sofar/ ${file} / }" != "$sofar" ]] && continue sofar="$sofar $file" sofar=" $(eval _muttconffiles \"$sofar\" $file) " |