Hardy Heron .bashrc Forced Color Prompt Mispell Error

Bug #228187 reported by Shinkan
2
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bash

uname -a
Linux creed 2.6.24-17-generic #1 SMP Thu May 1 14:31:33 UTC 2008 i686 GNU/Linux

lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04

bash --version
GNU bash, version 3.2.33(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

bash 3.2-0ubuntu16

I often use colored prompt for my user shell, so I edit the ~/.bashrc (copied from /etc/skel/.bashrc)
Since Hardy Heron, I've found a useful line, which seems to be put to avoid commenting or uncommenting numerous lines manually (line 33) :
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_colored_prompt=yes

But the fact is that the following test doesn't correspond to the set variable (line 35) !!
if [ -n "$force_color_prompt" ]; then

We should change force_colored_prompt to force_color_prompt to define the variable, and everything is OK.

Revision history for this message
Shinkan (shinkan-deactivatedaccount) wrote :
Revision history for this message
Andrew (andrewkvalheim) wrote :

Confirmed in Ubuntu 8.04. In /etc/skel/.bashrc, the line "#force_colored_prompt=yes" should be changed to "#force_color_prompt=yes".

Revision history for this message
dmay (dmay-dmay) wrote :

Confirmed in Ubuntu 8.04 server

Revision history for this message
Mika Fischer (zoop) wrote :

Shinkan,

thanks for reporting this bug. It has however already been reported and is fixed in the latest bash package for hardy.

Regards,
 Mika

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.