Subject: Re: Keyboard or terminal problem?
To: NetBSD <netbsd-users@netbsd.org>
From: Ezequiel Reyes <ezequiel.reyes@newhotel.co.cu>
List: netbsd-users
Date: 04/03/2005 17:06:59
I read the sh manual and put a line in the .profile giving value to the ENV
variable, telling the shell to look for a .shrc file in the user home folder
where I put the set -o emacs switch. It works ok whenever I login as root or
any other user in text mode, but not so when login trough xdm. Any xterm I
open has the ENV variable empty and thus, no emacs option defined for the
shell in that terminal. I guess as xdm is not launching any shell when it
logs in, the shell that any xterm starts when it opens, not being a login
shell, finds ENV empy. How do I tell those shells to read .shrc? Do I need
to set the ENV variable somewhere else for non-login shells?

----- Original Message -----
From: "Geert Hendrickx" <ghen@hmacs.cmi.ua.ac.be>
To: "Ezequiel Reyes" <ezequiel.reyes@newhotel.co.cu>
Cc: "NetBSD" <netbsd-users@NetBSD.org>
Sent: Tuesday, January 11, 2005 3:15 PM
Subject: Re: Keyboard or terminal problem?


> On Tue, Jan 11, 2005 at 07:46:41AM -0800, Ezequiel Reyes wrote:
> > I, installed NetBSD and selected sh as the shell for both root and my
local
> > user. The problem is, when I login as root, sh offers me command history
and
> > cursor keys in the prompt, but when using the local user I created, none
of
> > the two is available. The only thing I notice is that TERMCAP has a
large
> > string when using root and is empty with the local user.
> > Any ideas?
>
> set -o emacs
>
> GH
>
> --
> :wq
>