[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Korn Shell...any ideas?
On Thu, Apr 11, 2002 at 11:39:20PM -0500, Tim Grossner wrote:
> 1: is there another .file I can control Korn with?
.profile
> 2: is there a way if question 1 is answered to have it execute "bash" upon
> my login.
Something like this at the beginning of ~/.profile should work nicely:
if [ "$SHELL" = /bin/ksh -a -z "$BASH" -a -x $HOME/bin/bash ]; then
exec $HOME/bin/bash -login
fi
Note that bash will also use ~/.profile, which is why you want to be
paranoid about making sure you are actually running under ksh.
Steve
--
steve@silug.org | Southern Illinois Linux Users Group
(618)398-7360 | See web site for meeting details.
Steven Pritchard | http://www.silug.org/
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.