Debian Bug report logs - #482300
bash-completion: muttrc source command and | fails

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Christian von Essen <christian@mvonessen.de>

Date: Wed, 21 May 2008 17:30:04 UTC

Severity: normal

Found in version bash-completion/20060301-4

Fixed in version 20080617.4

Done: Luk Claes <luk@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Luk Claes <luk@debian.org>:
Bug#482300; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Christian von Essen <christian@mvonessen.de>:
New Bug report received and forwarded. Copy sent to Luk Claes <luk@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Christian von Essen <christian@mvonessen.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: muttrc source command and | fails
Date: Wed, 21 May 2008 19:28:57 +0200
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




Reply sent to Luk Claes <luk@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Christian von Essen <christian@mvonessen.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 482300-done@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 482300-done@bugs.debian.org
Subject: bash-completion: muttrc source command and | fails
Date: Tue, 24 Jun 2008 19:40:58 +0200
Version: 20080617.4

Hi

Your patch was accepted, so I'm closing this bug.

Cheers

Luk




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 29 Jul 2008 07:26:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:26:34 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.