Bug 38318 - korn shell environment settings
Summary: korn shell environment settings
Status: CLOSED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-18 13:33 UTC by Thomas Ronayne
Modified: 2002-11-10 17:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Ronayne 2002-02-18 13:21:31 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konsole
Version:           KDE 2.2.2 
Severity:          normal
Installed from:    Slackware Packages
Compiler:          gcc
OS:                Linux
OS/Compiler notes: Not Specified

I updated to v 2.2.2 (yesterday -- nice job guys) and noted that the the Konsole does not open with my Korn shell environment settings! Bah! Phooey! (It doesn't read .profile and thus does not execute .kshrc so...).

The old one did as does CDE in Solaris this one doesn't. What's the fix?

Thanks

(Submitted via bugs.kde.org)
Comment 1 Stephan Binner 2002-02-18 17:26:16 UTC
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)?
Comment 2 Thomas Ronayne 2002-02-18 17:56:27 UTC
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
Comment 3 Stephan Binner 2002-02-19 13:58:32 UTC
> how would one start konsole from kde as a login shell?
 
Korn from Konsole as already told with Konsole parameter "--ls".
Comment 4 Stephan Binner 2002-03-02 08:33:22 UTC
Thank you for your bug report.
You have not provided enough information for us to be able to reproduce a 
bug. Please provide a detailed account of the steps required to trigger and
reproduce the bug. Without this information we will not be able to reproduce
identify and fix the bug.
Comment 5 Robert Batey 2002-11-10 17:55:22 UTC
I'm having trouble seeing that this bug is fixed.  On the version I'm
using KDE 3.0.1, Konsole 1.1.1, and ksh93 my settings in /etc/profile
are not used.  I think this should be the default.  Starting ksh93
in a console outside of KDE environment achieves this.  The difference
is something in KDE.