Alt-F2 has unique $PATH?

Jonas Norlander jonorland at gmail.com
Wed Jun 25 14:48:54 UTC 2008


2008/6/25 Derek Broughton <news at pointerstop.ca>:
> Dotan Cohen wrote:
>
>> 2008/6/24 Jonas Norlander <jonorland at gmail.com>:
>>> I think it has to do with that ALF-F2 is not a login shell or an
>>> interactive shell so your shell config file (.bash_profile,
>>> .bash_login or .profile) is not sourced.
>>>
>>> I was looking briefly into .bash_profile and .profile as a answer for
>>> an other mail and as i understand it bash will not read .profile or
>>> .bash_login if you have a .bash_profile and in Ubuntu they use the
>>> .profile file.
>
> I believe that should have ended "in Ubuntu they use the .bash_profile file"
> or the next bit doesn't make sense (not to mention we talked about .profile
> a while ago, and nobody seemed to have one).
>

I don't agree with you on that, just to verify i created a new user
(testuser) with the Kubuntu GUI, and this is the files created in the
new users home dir:
jonas at thor:~$ ls -lA /home/testuser/
totalt 12
-rw-r--r-- 1 testuser testuser  220 2007-10-05 17:25 .bash_logout
-rw-r--r-- 1 testuser testuser 2940 2008-05-12 20:36 .bashrc
-rw-r--r-- 1 testuser testuser  586 2008-04-15 05:37 .profile

And this is the files in the skel dir:
jonas at thor:~$ ls -lA /etc/skel/
totalt 12
-rw-r--r-- 1 root root  220 2007-10-05 17:25 .bash_logout
-rw-r--r-- 1 root root 2940 2008-05-12 20:36 .bashrc
-rw-r--r-- 1 root root  586 2008-04-15 05:37 .profile

My system is Kubuntu Hardy upgraded from Kubuntu Gutsy. As you can see
there is no .bash_profile and that make kind of sense as that is a
bash specific file and the .profile is the standard (for login shell)
for other Bourn compatible Shell. On Ubuntu /bin/sh is linked to dash
and there are other Bourn shells like Ash, Kourn Shell and C Shell.

Perhaps they changed policy away from the bash only config file and
move to .profile in later version of Ubuntu?
It would be great to have a table of what files is read for what shell
at login, interactive or non-interactive scripts for it's very hard to
get a grip of all this.

/ Jonas




More information about the kubuntu-users mailing list