You are not logged in.
Pages: 1
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
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
copied your .bashrc into mine and have no problems
do you have a DISPLAY environment variable?
Offline
Yes, I do. Looks just like the one in your .bashrc.
The sole difference was that line.
Rick
Offline
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 .
Offline
it's a problem with the bash-completion package, afaik. They're aware of it and fixing it.
Offline
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
Pages: 1