https://bugzilla.novell.com/show_bug.cgi?id=383486
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=383486#c10
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
Info Provider|werner@novell.com |
--- Comment #10 from Dr. Werner Fink 2008-05-14 05:23:12 MST ---
The error happens only if /etc/bash_completion is installed.
Simply add a
set -x
before sourcing /etc/bash_completion and you see why the bash
breaks within parsing /etc/bash_completion:
++ [[ -f /etc/bash_completion ]]
++ . /etc/bash_completion
+++ '[' -n '' ']'
+++ set +v
IMHO the following piece of code in /etc/bash_completion cause this:
[ -n "${BASH_COMPLETION_DEBUG:-}" ] && set -v || set +v
# Alter the following to reflect the location of this file.
{
# These declarations must go within braces in order to be able to silence
# readonly variable errors.
BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}"
BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"
} 2>/dev/null || :
readonly BASH_COMPLETION BASH_COMPLETION_DIR
you may use a clean bash (== not loaded /etc/bash_completion)
bash -noprofile -norc
bash-3.2$ . hugo
Before loading /etc/bash_completion
After loading /etc/bash_completion
to see the full load and the last line of your debug code.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.