Subject: Re: ksh [was: Re: miniroot for NetBSD/i386?]
To: Hubert Feyrer <feyrer@cs.stevens.edu>
From: Igor Sobrado <igor@string1.ciencias.uniovi.es>
List: port-i386
Date: 12/13/2005 09:34:11
In message <Pine.LNX.4.61.0512122127300.1950@m24s24.vlinux.de>, Hubert Feyrer writes:
> On Mon, 12 Dec 2005, Igor Sobrado wrote:
> >
> > Ok, it is not perfect but it works (at least for files, not for
> > commands in the user's path).  ;-)
> 
> IIRC this only works if you do NOT have the VISUAL env var set.
> Kinda strange...

It is now an off-topic on this mailing list... but perhaps we can
do something to fix Solaris too or, at least, find a workaround
for this problem.  ;-)

Filename completion works if "set -o [emacs|vi]" is executed after
setting the VISUAL environment variable:
 
$ ssh sismica0.geol.uniovi.es
sobrado@sismica0.geol.uniovi.es's password:
Last login: Tue Dec 13 09:14:22 2005 from altair.ciencias
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
$ set -o emacs               <- we enable emacs-mode before setting VISUAL
$ VISUAL=vi; export VISUAL
$ cat .pro<Esc>+<Esc>        <- it does not work!!!
$ set -o emacs
$ cat .pro<Esc>+<Esc>        <- $ cat .profile... now it works...
[...]
$ echo $VISUAL               <- VISUAL environment variable is defined yet
vi
$

Certainly it sounds as a *bug* to me.
Igor.