Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

korn or bash shell 1

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
0
0
US
Good Day,

I run the following commands -

$ bash
$ echo $SHELL
/bin/ksh

Does it make sense? ; - )

Regards,
Dan
 
[tt]SHELL[/tt] is an environment variable that's being set by your logon shell, [tt]/bin/ksh[/tt]. Just running "[tt]bash[/tt]" doesn't reset it, it just carries over.

 
If you want "[tt]bash[/tt]" to act as if you actually logged onto it as your default shell, this will get pretty close...

Code:
$ exec bash --login

Of course if you really want it to be your login shell, the cleanest way is to put it into your entry in [tt]/etc/passwd[/tt].

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top