GUI is not started after installing bash-prompt

Bug #956829 reported by Sergey Kryazhevskikh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-prompt
Fix Released
Medium
Sergey Kryazhevskikh

Bug Description

When bash-prompt package has been installed, X session is not started.

In /etc/bash.bashrc there is lines:

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
        function command_not_found_handle {
...

Bash got error on line
 'function command_not_found_handle {'

When bash-prompt package has been removed everything goes allright.

Tags: rc1
description: updated
Changed in bash-prompt:
importance: High → Medium
status: New → In Progress
Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

It happens due to additions into file /etc/profile

Revision history for this message
Sergey Kryazhevskikh (soliverr) wrote :

"When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior."

I don't need call scripts in /etc/bash.bashrc. It is enough to use /etc/profile only.

What about /etc/profile.d ?

Changed in bash-prompt:
status: In Progress → Fix Committed
Changed in bash-prompt:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.