[Bash-completion-devel] Bug#482300: bash-completion: muttrc source command and | fails
Christian von Essen
christian at mvonessen.de
Wed May 21 17:28:57 UTC 2008
Package: bash-completion
Version: 20060301-4
Severity: normal
My .muttrc contains a line
source '~/Maildir/mutt-archiver|'
Mutt is expected to execute the specified file and source the text
printed by this script.
Bash fails when trying to complete a line beginning with "mutt ". The
problem lies in the 4823 of /etc/bash_completion.
The applied sed regexp returns the line above, which should not happen.
A possible fix is to replace the line from /etc/bash_completion with
newconffiles=($(sed -rn 's|^source[[:space:]]+([^[:space:]|]+)([^|]*)$|\1|p' $(eval echo $1) ));
but I'm not sure if this is the ideal solution.
Regards,
Christian
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 3.1dfsg-9 The GNU Bourne Again SHell
ii ucf 3.006 Update Configuration File: preserv
bash-completion recommends no packages.
-- no debconf information
More information about the Bash-completion-devel
mailing list