ksh behaviour

ksh behaviour

Post by Frank Eich » Wed, 06 Feb 2002 04:58:15



Some of our employees are complaining about ksh's
behaviour, when using a telnet / ssh connection to the
server.

Obviously the vi editor is set as the default editor in the
ksh. Is it possible to get a windows-like behaviour, so that
pressing the backspace button really deletes the char instead
of filling the screen with nerd stuff?

sincerely,
Frank

 
 
 

ksh behaviour

Post by Michael Maxwel » Wed, 06 Feb 2002 05:56:03



> Some of our employees are complaining about ksh's
> behaviour, when using a telnet / ssh connection to the
> server.

> Obviously the vi editor is set as the default editor in the
> ksh. Is it possible to get a windows-like behaviour, so that
> pressing the backspace button really deletes the char instead
> of filling the screen with nerd stuff?

By "nerd stuff", I take it you mean you are seeing ^H^H^H^H when
a user presses backspace?

You can do "set -o emacs" in their .kshrc *or* set stty erase '^h' in
their .profile.

--
Michael Maxwell <mmaxwell at spss dot com>
Systems Specialist, SPSS, Inc.
Visit our web site at http://www.spss.com/

 
 
 

ksh behaviour

Post by Jose Pina Coelh » Wed, 06 Feb 2002 10:17:33



> Obviously the vi editor is set as the default editor in the
> ksh.

Obviously ?

Quote:> Is it possible to get a windows-like behaviour, so that
> pressing the backspace button really deletes the char instead
> of filling the screen with nerd stuff?

We like the nerd stuff.  However, "nerdstuff" is
semanticaly nil.  What happens when they press del ?
What happens when they press backspace ?
What is the terminal emulator.
What are it's settings ?
What is the value of TERM ?

--
Doing AIX support was the most monty-pythonesque
activity available at the time.

 
 
 

ksh behaviour

Post by Koucha, Rachid [CTF:4927:EXCH » Wed, 06 Feb 2002 21:14:57


Try the "emacs" mode by typing :

set -o emacs



> > Obviously the vi editor is set as the default editor in the
> > ksh.
> Obviously ?

> > Is it possible to get a windows-like behaviour, so that
> > pressing the backspace button really deletes the char instead
> > of filling the screen with nerd stuff?
> We like the nerd stuff.  However, "nerdstuff" is
> semanticaly nil.  What happens when they press del ?
> What happens when they press backspace ?
> What is the terminal emulator.
> What are it's settings ?
> What is the value of TERM ?

> --
> Doing AIX support was the most monty-pythonesque
> activity available at the time.

 
 
 

ksh behaviour

Post by Markus B?rtsch » Thu, 07 Feb 2002 06:32:25



says...

Quote:> Try the "emacs" mode by typing :

> set -o emacs

You'll have to add aliases to map the cursor keys to the emacs cursor
movement commands (in .kshrc):
alias __A="^P"
alias __B="^N"
alias __C="^F"
alias __D="^B"

Markus

--
  Markus Baertschi             Phone: ++41 (21) 807 1677
  Bas du Ross 14b             Fax  : ++41 (21) 807 1678

  Switzerland                  Homepage: www.markus.org

 
 
 

1. weird ksh behaviour on AIX

Hi,

I just ported a ksh script from Linux to AIX (granted on Linux it was pdksh)
and came across something weird.  I tested it on AIX fine, but a user
reported an error which I could only reproduce on his account for some
reason and the error in the script seemed to happen when it was run off csh
(the user later said that it would happen even if he would run ksh first).
The shebang line of the script was ok (#! /usr/bin/ksh).

I found that the problem was that $PWD (which the script relied on) was
treated as null until I would run pwd on its own first (pwd > /dev/null).
Weird.

Ben

2. linux firewall

3. Puzzling ksh behaviour with set -o errexit

4. Mount Point Problems

5. odd ksh behavior with "!" char

6. US CT UNIX Sun/Solaris Admin

7. Very Strange ksh Behavior in SCO Unix

8. Script to count the lines with date older than...

9. Strange ksh behaviour...

10. inconsistent ksh and sh behavior

11. Strange behaviour of KSH

12. ksh bk-gnd behaviour

13. ksh strange behaviour HELP PLEASE