You are not logged in.

#1 2006-03-26 16:24:48

lumiwa
Member
Registered: 2005-12-26
Posts: 712

bash - login

Hi!

After update of bash I get a message when I login:

-bash: [:[u@h: binary operator expected

In the .bashrc I have:

alias ls='ls --color=auto'
PS1='u@h $ '

test -n "$DISPLAY" && export TERM=xterm-color

Thanks,

Mitja

Offline

#2 2006-03-26 17:34:49

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: bash - login

Mine is almost idetical to yours except that the second line reads: PS1='[u@h W]$ '
Notice the W there. Perhaps you can edit your.bashrc to read the same, see if it helps.

Rick

Offline

#3 2006-03-26 17:37:39

shbang
Member
Registered: 2005-10-03
Posts: 76

Re: bash - login

copied your .bashrc into mine and have no problems

do you have a DISPLAY environment variable?

Offline

#4 2006-03-26 17:39:19

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: bash - login

Yes, I do. Looks just like the one in your .bashrc.
The sole difference was that line.

Rick

Offline

#5 2006-03-26 17:44:31

lumiwa
Member
Registered: 2005-12-26
Posts: 712

Re: bash - login

ralvez wrote:

Mine is almost idetical to yours except that the second line reads: PS1='[u@h W]$ '
Notice the W there. Perhaps you can edit your.bashrc to read the same, see if it helps.

Rick

Yesterday was update of bash 3.1.2 and after that I have a ''problem''. I had same .bashrc as long as I have a Linux smile.

Offline

#6 2006-03-26 18:32:36

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: bash - login

it's a problem with the bash-completion package, afaik.  They're aware of it and fixing it.

Offline

#7 2006-03-26 19:20:38

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: bash - login

1. mcedit /etc/profile.d/bash_completion.sh
2. find line 8
3. find $PS1 in [ ]
4. write " " around the $PS1

or type this:
sed -i 's#$PS1#"$PS1"#' /etc/profile.d/bash_completion.sh
Only once, it runs without any message so don't run it once again.

Offline

Board footer

Powered by FluxBB