[Bash-completion-devel] Bug#655042: Should quickly check if already sourced and do nothing

Josh Triplett josh at joshtriplett.org
Sun Jan 8 00:33:16 UTC 2012


Package: bash-completion
Version: 1:1.99-1
Severity: wishlist

Shell snippets to source the main bash_completion script typically
include some check to see if it has already run, to avoid sourcing it
again.  With older bash-completion, this check typically tested
$BASH_COMPLETION; newer bash-completion no longer sets that variable, so
the check uses $BASH_COMPLETION_COMPAT_DIR.  Either way, I'd suggest
that bash-completion should just include the appropriate check directly
in its main script, to avoid the need to write it when sourcing the
script.

- Josh Triplett

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.2-1

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information





More information about the Bash-completion-devel mailing list