Debian Bug report logs - #593835
bash-completion: non optional by being in /etc/profile.d

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: Tim Connors <reportbug@rather.puzzling.org>

Date: Sat, 21 Aug 2010 12:57:01 UTC

Severity: normal

Tags: confirmed

Found in version bash-completion/1:1.2-2

Fixed in version bash-completion/1:1.90-1

Done: David Paleino <dapal@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, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#593835; Package bash-completion. (Sat, 21 Aug 2010 12:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Tim Connors <reportbug@rather.puzzling.org>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Sat, 21 Aug 2010 12:57:04 GMT) (full text, mbox, link).


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

From: Tim Connors <reportbug@rather.puzzling.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: non optional by being in /etc/profile.d
Date: Sat, 21 Aug 2010 22:55:17 +1000
Package: bash-completion
Version: 1:1.2-2
Severity: normal

By placing a script in /etc/profile.d/, setting up of bash-completion
becomes completely non-optional.  Previously, it was up to the user to
source /etc/bash_completion, but now it is not.

If a user has their own copy of ~/.bash_completion that they'd rather
use instead, you end up in an infinite loop at login time, and that
user has no ability to disable the sourcing of the system wide
bash-completion scripts that lead to this inifinite loop.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          4.1-3      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#593835; Package bash-completion. (Mon, 04 Jul 2011 21:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 04 Jul 2011 21:21:03 GMT) (full text, mbox, link).


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

From: Jonathan Nieder <jrnieder@gmail.com>
To: 593835@bugs.debian.org
Cc: Tim Connors <reportbug@rather.puzzling.org>
Subject: Re: bash-completion: non optional by being in /etc/profile.d
Date: Mon, 4 Jul 2011 16:18:04 -0500
Hi,

Tim Connors wrote:

> By placing a script in /etc/profile.d/, setting up of bash-completion
> becomes completely non-optional.  Previously, it was up to the user to
> source /etc/bash_completion, but now it is not.

Yep.

Even worse, it's confusing.  Files in /etc/profile.d are only sourced
for login shells; a typical xterm opens a non-login shell.  A more
appropriate way to use bash_completion is to check in .bashrc if the
current shell is interactive and if so source an appropriate file.

Perhaps the relevant shell fragment should go in /etc/skel/.bashrc
instead.

Hope that helps,
Jonathan




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#593835; Package bash-completion. (Mon, 04 Jul 2011 21:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Guillaume Rousse <guillomovitch@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 04 Jul 2011 21:33:07 GMT) (full text, mbox, link).


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

From: Guillaume Rousse <guillomovitch@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>, 593835@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#593835: bash-completion: non optional by being in /etc/profile.d
Date: Mon, 04 Jul 2011 23:28:33 +0200
Le 04/07/2011 23:18, Jonathan Nieder a écrit :
> Hi,
> 
> Tim Connors wrote:
> 
>> By placing a script in /etc/profile.d/, setting up of bash-completion
>> becomes completely non-optional.  Previously, it was up to the user to
>> source /etc/bash_completion, but now it is not.
> 
> Yep.
> 
> Even worse, it's confusing.  Files in /etc/profile.d are only sourced
> for login shells;
Maybe on Debian-based distributions, but not on Redhat-based ones, which
is even more confusing :)
-- 
BOFH excuse #64:

CPU needs recalibration




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#593835; Package bash-completion. (Thu, 07 Jul 2011 21:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ville Skyttä <ville.skytta@iki.fi>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 07 Jul 2011 21:42:06 GMT) (full text, mbox, link).


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

From: Ville Skyttä <ville.skytta@iki.fi>
To: 593835@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#593835: Bug#593835: bash-completion: non optional by being in /etc/profile.d
Date: Fri, 08 Jul 2011 00:40:20 +0300
The profile.d script in bash-completion 1.3 checks whether programmable
completion is enabled and does not load bash_completion if it's not.

Additionally, in git there's now a config file hook in it that makes it
easier to disable bash_completion on per user basis:
http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=525d6e7




Added tag(s) confirmed and pending. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Thu, 03 Nov 2011 12:06:06 GMT) (full text, mbox, link).


Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Thu, 03 Nov 2011 12:22:24 GMT) (full text, mbox, link).


Notification sent to Tim Connors <reportbug@rather.puzzling.org>:
Bug acknowledged by developer. (Thu, 03 Nov 2011 12:22:50 GMT) (full text, mbox, link).


Message #27 received at 593835-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 593835-close@bugs.debian.org
Subject: Bug#593835: fixed in bash-completion 1:1.90-1
Date: Thu, 03 Nov 2011 12:17:12 +0000
Source: bash-completion
Source-Version: 1:1.90-1

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:

bash-completion_1.90-1.debian.tar.gz
  to main/b/bash-completion/bash-completion_1.90-1.debian.tar.gz
bash-completion_1.90-1.dsc
  to main/b/bash-completion/bash-completion_1.90-1.dsc
bash-completion_1.90-1_all.deb
  to main/b/bash-completion/bash-completion_1.90-1_all.deb
bash-completion_1.90.orig.tar.bz2
  to main/b/bash-completion/bash-completion_1.90.orig.tar.bz2



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 593835@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 03 Nov 2011 13:03:51 +0100
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:1.90-1
Distribution: experimental
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 577933 593835 604393 615134 618734 619014 622383 623680 625234 642526
Changes: 
 bash-completion (1:1.90-1) experimental; urgency=low
 .
   * bash-completion 2 preview: dynamic loading of completions
     - optionally fallback to generic file completion if _filedir
       returns nothing (Closes: #619014, LP: #533985)
     - various fixes (Closes: #622383)
     - apt: add 'download' to subcommands (Closes: #625234, LP: #720541)
     - aptitude: add 'versions' command (Closes: #604393)
     - dpkg-query: use the 'dpkg' completion (Closes: #642526)
     - lintian: remove --unpack-level (Closes: #623680)
     - rrdtool: complete filenames after commands (Closes: #577933)
     - provide profile.d hook for per user disabling of bash_completion
       (Closes: #593835)
     - mutt: support tildes when recursively sourcing muttrc files
       (Closes: #615134)
     - tar: improve tar *[cr]*f completions (Closes: #618734)
   * More checks in update-bash-completion: avoid unnecessary
     sourcing of completion if symlink already exists
   * Add message for users before they report a bug (debian/bug-presubj),
     I'm kind of fed-up with bugs caused by acroread.sh :/
   * Removed patches merged upstream
   * Drop trigger-based completion loading
   * Standards-Version bump to 3.9.2, no changes needed
Checksums-Sha1: 
 748b796aa5f70f17b2c3ec449dd7a8d66933bb8a 1394 bash-completion_1.90-1.dsc
 aa1a1f4e34bff93f8227c1a200de310a04a21e86 228640 bash-completion_1.90.orig.tar.bz2
 e5deb79d3aa91dff60baee0d4f1675fc5fd6ea2b 13057 bash-completion_1.90-1.debian.tar.gz
 64a6a900971b2bc4d6d8706345f3037c81b85762 179058 bash-completion_1.90-1_all.deb
Checksums-Sha256: 
 78c827e512975c885b3cb09a2a50676d2f8bcd3c81b712a18035b288bfa0d92a 1394 bash-completion_1.90-1.dsc
 293084b7584e89734002a49688ca9aea2bab16ca4750b30f66b62a373750c41c 228640 bash-completion_1.90.orig.tar.bz2
 06975fe1a3291aadad7489d381183bcc64731f6b256647b8a5e277bb16ae97a8 13057 bash-completion_1.90-1.debian.tar.gz
 4f78b12ab95b5ed24c8fe63e26d9f1635f189ccb9c7f7b503af101c0dfe92fe0 179058 bash-completion_1.90-1_all.deb
Files: 
 adf23b480b86c55d9e337258164785a0 1394 shells standard bash-completion_1.90-1.dsc
 82635839d83074eba923822fd584490c 228640 shells standard bash-completion_1.90.orig.tar.bz2
 ab9637c3c2aea423af97932b19bdc832 13057 shells standard bash-completion_1.90-1.debian.tar.gz
 e43e91227a8d739a095577d51a1e0b78 179058 shells standard bash-completion_1.90-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk6yhD8ACgkQ5qqQFxOSsXQUSACfdui594rcT9CfiI3CyWfl60xa
UpMAoKbynog3IF+e2EOHcrFL6VBNbHPO
=Wi2f
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 05 Feb 2012 07:37:12 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: Wed Aug 23 10:35:46 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.