Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2000 21:44:37 -0400
From:      Jim Durham <durham@w2xo.pgh.pa.us>
To:        FreeBSD Questions <FreeBSD-questions@FreeBSD.ORG>
Subject:   sh's "emacs" mode lost on su
Message-ID:  <3990B785.78290DA6@w2xo.pgh.pa.us>

next in thread | raw e-mail | index | archive | help
I usually run the shell (sh) in emacs mode by specifying "set -o emacs"
in .profile.

Unfortunately, when one does an "su" to do something as root, the
emacs mode, being a function of the user shell, does not apply
to the root shell started by "su". This usually causes me to forget,
type an emacs command, and stare stupidly at the screen for a moment
before I remember to do "set -o emacs" in the su'd shell.

"su -" or "su -l" keep emacs mode on, if it is specified in the
.profile of /root, but cd's one to /root, not what it usually 
wanted either.

After reading the "su" and "sh" man pages, I see no way around this.

Am I overlooking something obvious?

-- 
Jim Durham


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3990B785.78290DA6>