From f5d49065d2be794e8fc486f54f5fb43aafb6956e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 25 Apr 2011 13:48:31 +0300 Subject: [PATCH] Expand tilde in mutt query command (Alioth: #312759). --- CHANGES | 1 + completions/mutt | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 6f0a37ec..dcbe1678 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,7 @@ bash-completion (2.x) redirection handling, use it in many completions. * Replace actual sysconfdir in bash_completion on install (Alioth: #313081). * Activate killall completion on Darwin (Alioth: #312350). + * Expand tilde in mutt query command (Alioth: #312759). [ Guillaume Rousse ] * added puppet completion, using work from Mathieu Parent (sathieudebian.org) diff --git a/completions/mutt b/completions/mutt index 8c40b943..587f3a5e 100644 --- a/completions/mutt +++ b/completions/mutt @@ -101,6 +101,7 @@ _muttquery() if [[ -z "$cur" || -z "$querycmd" ]]; then queryresults=() else + __expand_tilde_by_ref querycmd queryresults=( $( $querycmd | \ sed -n '2,$s|^\([^[:space:]]\{1,\}\).*|\1|p' ) ) fi