Subject: Re: bin/32215: root has shell history, users don't on default ksh
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: netbsd-bugs
Date: 12/02/2005 12:09:01
The following reply was made to PR bin/32215; it has been noted by GNATS.

From: Juan RP <juan@xtrarom.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/32215: root has shell history, users don't on default ksh
Date: Fri, 2 Dec 2005 13:07:59 +0100

 On Fri,  2 Dec 2005 11:47:00 +0000 (UTC)
 Wouter Schoot <ascent@schoot.org> wrote:
 
 > >Description:
 > When I freshly install a -current (or an RC for that matter), and I
 > choose /bin/ksh for root, I see that I have tab completion _and_
 > history. When I then make a user, it only has tabcompletion. 
 > >How-To-Repeat:
 > Login as root, make a user and compare.
 > >Fix:
 > This is caused by the fact that root has .shrc which includes the
 > 'set -o emacs' rule, and .shrc is included by the .profile file. I'd
 > very much love to have /etc/skel setup the same way (ie. new users
 > with ksh have also the set -o emacs rule somewhere, just as root).
 > 
 > Is the current behaviour for a specific reason, or is it something
 > that can be changed?
 
 Agreed. It would be nice to set "set -o emacs" to all users.