In ksh, with Vi editing mode, press Esc to get into command mode, then press 'v' to edit the very long command line in vi(1). The command line will be executed by the shell when you save and quit the editor.
Regards, Andreas On 12/02/2008, OBSD <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a small problem with the KSH and Bash on a OpenBSD 4.2. with very long > commands. > I have > echo $SHELL > /bin/ksh and > echo $KSH_VERSION > @(#)PD KSH v5.2.14 99/07/13.2 > and in my ~/.inputrc is > set horizontal-scroll-mode Off > > I found this setting in the man readline > http://www.openbsd.org/cgi-bin/man.cgi?query=readline&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html > > But unfortunately it does not work. > It does not warp the line either in KSH or Bash. Instead it overwrites the > already written text > which is annoying if you have very long commands. > I have tried as well the /etc/inputrc with this entry but it does not work > again. > I read as well the man KSH but does not find any useable info there. > > Strange enough if I start a csh it works but not with the other shells. > > Has anybody maybe an fix or workaround how I can solve this? > Every hint is appreciated!! > > Regards > Stefan > -- > > -- Andreas Kahari Somewhere in the general Cambridge area, UK

