bashrc fix
Kok, Auke
sofar at foo-projects.org
Tue Mar 6 05:09:26 CET 2007
Zbigniew Luszpinski wrote:
> lunar changelog:
> *if PATH was exported earlier, preserve its content (e.g. /etc/profile loads
> earlier),
> *empty LANG= replaced with real language settings,
double NAK:
PATH is *ALWAYS* set earlier, e.g. cron sets it, bash itself does so as well.
The way that you implemented this it will *add* existing values to it, making
them appear double. that is not right.
> If you wondered why KDE konsole ignores your correct language and path
> settings or non US-English text looks in konsole like rubbish or crazy
> graphics bit soup this is the right answer.
NO, this is wrong.
tell your Konsole to start a "login shell" instead.
bashrc settings are for NON-INTERACTIVE shell settings.
It's not bash's fault that konsole is retarded and assumes that "a user spawning
a graphical shell" is not the same as "the user wants a login shell".
this patch is not acceptable. You're fixing a problem in the wrong place. Fix
Konsole to use .bash_profile or run a login shell instead by default.
>
> have a nice day,
> Zbigniew 'zbiggy' Luszpinski
>
>
> ------------------------------------------------------------------------
>
> --- /etc/bashrc 2006-04-15 18:50:46.000000000 +0200
> +++ /etc/bashrc 2006-04-14 20:23:40.000000000 +0200
> @@ -5,7 +5,7 @@
> # by default:
>
> # this is the minimum and given by init to start scripts (so a good start)
> -PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
> +PATH=$PATH:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
>
> # these might not be present, so keep our path clean:
> for DIR in \
> @@ -15,6 +15,7 @@
> done
>
> # bare necessities:
> -export PATH LANG=
> +export PATH
> +[ ! -f /etc/LOCALE ] || . /etc/LOCALE
> umask 022
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar
More information about the Lunar
mailing list