Red Hat Bugzilla – Bug 6311
Several bash things are hosed
Last modified: 2008-05-01 11:37:52 EDT
In installing 6.1 I found that the .bashrc file ends with a
floating "fi", which causes a complaint when logging in and
when a new terminal is brought up in GNOME.
The .bashrc file tries to execute "/etc/bashrc" but this
can't happen because the permissions on /etc/bashrc are all
set to "no execute".
Which bashrc are you talking about?
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
PS1="[\u@\h \W]\\$ "
and /etc/skel/.bashrc has:
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
I don't see any unbalanced ifs here, and sourcing /etc/bashrc
The permissions on /etc/bashrc are 644;
with those permissions, the exact same snippet of
shell code works fine; i.e. '. /etc/bashrc'.
Also, I tried adding a user with 'adduser foo', and
it came up with a normal (no extra fi) .bashrc.
Are you using something else to create the users?
Are you sure it's not something else giving you the error?
Closed due to lack of feedback