<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ksh93 not reading $HOME/.profile!!! in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224762#M10787</link>
    <description>Max,&lt;BR /&gt; &lt;BR /&gt;Well, terminals shouldn't be reading .profile when started by gdm and it "is the way of things".  If bash does do it for you, it needs a slap on the wrist.&lt;BR /&gt; &lt;BR /&gt;When you get Gnome up, it has arrived courtesy of your login shell, starting a new terminal is starting a sub-shell and hence, no .profile.&lt;BR /&gt; &lt;BR /&gt;A way around this is to edit the xresources file for which ever terminal you use and specify that it should default to a "login" shell in there.</description>
    <pubDate>Mon, 22 Mar 2004 01:59:24 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-03-22T01:59:24Z</dc:date>
    <item>
      <title>ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224759#M10784</link>
      <description>Hi folks!&lt;BR /&gt;&lt;BR /&gt;I am kind of frustrated with this... I just downloaded and installed&lt;BR /&gt;the rpm for ksh93 from this link:&lt;BR /&gt;&lt;A href="http://rpmfind.net//linux/RPM/contrib/libc6/i386/ksh93-2000.10.31.0-1.i386.html" target="_blank"&gt;http://rpmfind.net//linux/RPM/contrib/libc6/i386/ksh93-2000.10.31.0-1.i386.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am running under Red Hat 8.0. and KDE. The thing is that I created a&lt;BR /&gt;user&lt;BR /&gt;#useradd -s /bin/ksh student&lt;BR /&gt;&lt;BR /&gt;and I created under ~student:&lt;BR /&gt;&lt;BR /&gt;.profile&lt;BR /&gt;VISUAL=emacs&lt;BR /&gt;export VISUAL&lt;BR /&gt;&lt;BR /&gt;then I logged out and logged back in as user 'student'&lt;BR /&gt;and did:&lt;BR /&gt;&lt;BR /&gt;$set | grep VI&lt;BR /&gt;&lt;BR /&gt;and NOTHING was displayed!!!!!&lt;BR /&gt;&lt;BR /&gt;The curious thing is that it works when I do as 'student':&lt;BR /&gt;&lt;BR /&gt;$su - student&lt;BR /&gt;...&lt;BR /&gt;$set | grep VI&lt;BR /&gt;VISUAL=emacs&lt;BR /&gt;&lt;BR /&gt;WHY could this be happening!!! What else do I need to make it work?&lt;BR /&gt;&lt;BR /&gt;Thank you very much in advance!&lt;BR /&gt;&lt;BR /&gt;Max&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Mar 2004 09:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224759#M10784</guid>
      <dc:creator>Max_4</dc:creator>
      <dc:date>2004-03-21T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224760#M10785</link>
      <description>Now I think ksh93 is indeed reading .profile, the problem was that the terminal was forking a normal subshell not a&lt;BR /&gt;login shell.&lt;BR /&gt;&lt;BR /&gt;I haven't found yet the way of how to fix this for gnome. But I tried&lt;BR /&gt;adding --ls to the options for starting 'konsole' and it worked!&lt;BR /&gt;&lt;BR /&gt;What still bothers me is WHY when I log in graphically gdm doesn't&lt;BR /&gt;start a login shell like IT SHOULD. I mean when I log in graphically&lt;BR /&gt;gdm should know which my login shell is, and read my .profile at that&lt;BR /&gt;very first time, so that when I start any subshell I will have my&lt;BR /&gt;.profile env variables already set.&lt;BR /&gt;&lt;BR /&gt;The curious thing is that it does indeed read .bash_profile when&lt;BR /&gt;logging in graphically, when the login shell is bash not ksh!&lt;BR /&gt;&lt;BR /&gt;I wonder if there's something I can set to make it work correctly.?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance,&lt;BR /&gt;&lt;BR /&gt;Max&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Mar 2004 10:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224760#M10785</guid>
      <dc:creator>Max_4</dc:creator>
      <dc:date>2004-03-21T10:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224761#M10786</link>
      <description>Red Hat usually defaults to the .bash_profile&lt;BR /&gt;&lt;BR /&gt;Please check /etc/passwd for the users shell and that file. This may explain any unusual behavior.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 21 Mar 2004 12:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224761#M10786</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-21T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224762#M10787</link>
      <description>Max,&lt;BR /&gt; &lt;BR /&gt;Well, terminals shouldn't be reading .profile when started by gdm and it "is the way of things".  If bash does do it for you, it needs a slap on the wrist.&lt;BR /&gt; &lt;BR /&gt;When you get Gnome up, it has arrived courtesy of your login shell, starting a new terminal is starting a sub-shell and hence, no .profile.&lt;BR /&gt; &lt;BR /&gt;A way around this is to edit the xresources file for which ever terminal you use and specify that it should default to a "login" shell in there.</description>
      <pubDate>Mon, 22 Mar 2004 01:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224762#M10787</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-22T01:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224763#M10788</link>
      <description>Mark thanks for the input. As a matter of fact, I agree with you regarding a subshell (subshells do not read .profile).&lt;BR /&gt;&lt;BR /&gt;But GDM, I mean the initial graphical login screen, *should* read .profile if your login shell is /bin/ksh. As I said in the case of having a user with login shell bash, GDM does read .bash_profile at login time. Of course when you fork a terminal it does only read .bashrc, as one would expect it to be.&lt;BR /&gt;&lt;BR /&gt;The situation is quite different when the user's login shell is /bin/ksh. GDM _initial login_ screen does not read .profile NOT even once. I think this is wrong because at initial login time (not subshells) ksh should read .profile.&lt;BR /&gt;&lt;BR /&gt;The issue doesn't have to do with terminals reading .profile, for that _one can add_ --ls in the command that creates the terminal, for example to force it to read .profile or .bash_profile/.profile anytime I span a subshell via a terminal. But this is not good. The issue has to do with the Initial GDM login, that doesn't want to read .profile in case of /bin/ksh.&lt;BR /&gt;&lt;BR /&gt;I don't know, possibly I have to change something in gdm.conf, but I don't know.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Mar 2004 12:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224763#M10788</guid>
      <dc:creator>Max_4</dc:creator>
      <dc:date>2004-03-22T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh93 not reading $HOME/.profile!!!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224764#M10789</link>
      <description>Hello Manuel,&lt;BR /&gt; &lt;BR /&gt;I guess there is room for disagreement here but I still think bash is wrong.  I don't think a GUI should read through .profile by default.  Many people have interactive commands in their .profile which can cause lots of nasty things to happen if a GUI is running it.  On HPUX the GUI allows you to specifically set wether to read .profile or not and this, for me, is borderline usage :)&lt;BR /&gt; &lt;BR /&gt;However, on a linux box I guess the distinction is not so clear.  &lt;BR /&gt; &lt;BR /&gt;However, if you want to achieve this thing, why not just find your system wide Xsession file (which I assume GDM runs) and get it to source $HOME/.profile in there with ". $HOME/.profile".  This is the beauty of unix.</description>
      <pubDate>Tue, 23 Mar 2004 04:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ksh93-not-reading-home-profile/m-p/3224764#M10789</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-23T04:54:07Z</dc:date>
    </item>
  </channel>
</rss>

