bash_completion syntax error
Marius Gedminas
marius at pov.lt
Thu Nov 2 19:08:06 UTC 2006
On Thu, Nov 02, 2006 at 07:24:58PM +0100, Marco Mandl wrote:
> after upgrading to edgy I had to rename /etc/bash_completion and
> /etc/bash_completion.d because multiple syntax errors in these files where
> preventing the gnome session from starting.
Gnome session should not source /etc/bash_completion in any case. In
edgy this breaks because .gnomerc is processed by a POSIX shell (dash)
instead of bash.
> I have not found any indications that others have the same problem. Very
> strange.
I had it. I fixed it this way: my ~/.gnomerc contains
# import environment ($PATH and other stuff), but first make sure the
# noninteractive shell check works in my .bashrc. Yes, this is a hack.
old_PS1=$PS1
export PS1=
. ~/.bash_profile
PS1=$old_PS1
my ~/.bash_profile has only
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
and my ~/.bashrc has only environment variable settings before this line:
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
and bash_completion is sourced after it.
HTH,
Marius Gedminas
--
main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)for(x
=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))for(i=k=r=0;
j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}
/* Mandelbrot in ASCII. */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061102/de78fc50/attachment.sig>
More information about the ubuntu-users
mailing list