Re: How to launch ksh/bash when default shell is csh
From: Ed Morton (morton_at_lucent.com)
Date: 07/03/03
- Next message: Shawn Melnic: "finding access time"
- Previous message: Dan Mercer: "Re: How to launch ksh/bash when default shell is csh"
- In reply to: ajay: "How to launch ksh/bash when default shell is csh"
- Next in thread: Viktor Chuyko: "Re: How to launch ksh/bash when default shell is csh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Shawn Melnic: "finding access time"
- Previous message: Dan Mercer: "Re: How to launch ksh/bash when default shell is csh"
- In reply to: ajay: "How to launch ksh/bash when default shell is csh"
- Next in thread: Viktor Chuyko: "Re: How to launch ksh/bash when default shell is csh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|