Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2005 11:43:52 -0300
From:      Alejandro Pulver <alejandro@varnet.biz>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   sh interactive?
Message-ID:  <20050326114352.7363aa4c@ale.varnet.bsd>

next in thread | raw e-mail | index | archive | help
Hello,

How can I use 'sh' as an interactive shell?

My configuration files are the defaults.

The file '.profile' has the following:

[...]
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
[...]

The file '.shrc' has the following:

[...]
# Enable the builtin emacs(1) command line editor in sh(1),
# e.g. C-a -> beginning-of-line.
set -o emacs
[...]

However it does not read '.shrc' even if I call it with '-i'.

Will this work if I use 'sh' as my default shell (I use 'tcsh')?

Thanks and Best Regards,
Ale



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050326114352.7363aa4c>