From owner-freebsd-questions Tue Aug 8 18:43:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from w2xo.pgh.pa.us (ipl-229-002.npt-sdsl.stargate.net [208.223.229.2]) by hub.freebsd.org (Postfix) with ESMTP id 7342C37B58B for ; Tue, 8 Aug 2000 18:43:51 -0700 (PDT) (envelope-from durham@w2xo.pgh.pa.us) Received: from w2xo.pgh.pa.us (shazam.w2xo.pgh.pa.us [192.168.5.3]) by w2xo.pgh.pa.us (8.9.3/8.9.3) with ESMTP id BAA92691 for ; Wed, 9 Aug 2000 01:43:49 GMT (envelope-from durham@w2xo.pgh.pa.us) Message-ID: <3990B785.78290DA6@w2xo.pgh.pa.us> Date: Tue, 08 Aug 2000 21:44:37 -0400 From: Jim Durham Organization: dis- X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.1-RC i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Questions Subject: sh's "emacs" mode lost on su Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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