Re: How to launch ksh/bash when default shell is csh

From: Ed Morton (morton_at_lucent.com)
Date: 07/03/03


Date: Thu, 3 Jul 2003 08:25:46 -0500


"ajay" <ajay_kumarsingh@yahoo.com> wrote in message
news:2a0aec36.0307022107.604ecc47@posting.google.com...
> Hi All,
> I want to launch ksh/bash at login (default shell is csh on my system
> and i'm not admin so i can't change default shell)
>
> how i'm trying to do is this:
>
> in .login file i added this line:
>
> exec /bin/ksh
>
> ksh is started but .profile is not getting executed.
> Isn't .profile is executed everytime when a ksh is started.

No, whatever file name is stored in $ENV is executed every time a ksh is
started. That file is typically named .env or .kshenv and you normally don't
want your .profile executed every time a sub-shell is started as that'd lead
to undesirable things like your PATH variable being appended to again
(assuming your .profile sets up your PATH by appending bin directories).

> so how to make .profile executed ?

Try "ksh -l" (el).

    Ed.



Relevant Pages

  • Re: How to launch ksh/bash when default shell is csh
    ... :> I want to launch ksh/bash at login (default shell is csh on my system ... :> Isn't .profile is executed everytime when a ksh is started. ...
    (comp.unix.shell)
  • Re: No sourcing of ~/.profile at login
    ... default shell the same way /bin/login knows (and invokes an instance ... Did anyone suggest that Xsession should load .profile directly? ... > would prevent the login from happening. ...
    (Debian-User)
  • Re: Add to $PATH how?
    ... are sourced at the start of a "login" shell. ... the idea is that the .profile holds things that need doing exactly ... processes this need only happen once, and fresh interactive shells do ...
    (Fedora)
  • Re: No sourcing of ~/.profile at login
    ... login process) know your ... won't know about my own whizzy furblyburb shell. ... That implied to me the .profile. ... My preferred login method for years was the terminal console and I ...
    (Debian-User)
  • Re: How to launch ksh/bash when default shell is csh
    ... > I want to launch ksh/bash at login (default shell is csh on my system ... > Isn't .profile is executed everytime when a ksh is started. ...
    (comp.unix.shell)