sh interactive?

Alejandro Pulver alejandro at varnet.biz
Sat Mar 26 06:43:07 PST 2005


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


More information about the freebsd-questions mailing list