[Konsole-devel] Bug#38318: korn shell environment settings
Thomas Ronayne
trona at ameritech.net
Mon Feb 18 17:56:27 UTC 2002
Stephan Binner wrote:
> I don't know Korn and I don't know how Konsole should trouble Korn.
>
> You are sure, that you don't have to run it as login shell (--ls)?
Stephan:
Thanks for the reply -- Korn shell starts up (like everything else in
UNIX and UNIX-like systems) by reading /etc/profile; then, it reads the
user's HOME directory .profile (if it exists), and, within that
.profile, there is generally an environment variable defined,
ENV=.kshrc. When ksh encounters that on startup, it executes whatever is
in .kshrc (one time only, it's for setting aliases and any other
"personal" stuff).
What I noticed (immediately) is the update to konsole did not do this
the way the old version did, and I had to fiddle with things to get PS1
set the way I want it and similar things (it did read and exeute the
command in .kshrc -- which is where I wound up putting the PS1 setting).
What ksh is supposed to do is inherit the environment from the initial
login (I'm using xstart after I get logged in, rather than having X
start up on its own), and that it used to do but doesn't do no more
(used to be's don't count anymore?).
So, if I wanted to run kde with a login shell (which is kind of what you
have to do with, say, Hummingbird's X stuff for windoz), how would one
start konsole from kde as a login shell?
Ah, technology! Ain't it great?
Thanks.
Thomas Ronayne
More information about the konsole-devel
mailing list