Dear Ingo,

Ingo Schwarze <schwa...@usta.de> writes:

>> after reading the sh man page I have been wondering:
>> When is the line editing mode described just after the
>> 'COMMAND HISTORY AND COMMAND LINE EDITING' heading relevant?
>
> Near the beginning, the sh(1) manual page contains this paragraph:
>
>   This version of sh is actually ksh in disguise.  As such, it also
>   supports the features described in ksh(1).  This manual page describes
>   only the parts relevant to a POSIX compliant sh.  If portability is a
>   concern, use only those features described in this page.

yes, I was aware of that paragraph.

> In particular, the section "COMMAND HISTORY AND COMMAND LINE EDITING"
> describes only those features of ksh(1) "Vi editing mode" required by
> POSIX.  Wo do not provide a shell or an execution mode of ksh
> providing exactly those features and no extensions.

What I didn't know was that the mode I asked about really is,
essentially, the vi editing mode, and, as such, has to be explicitly
turned on with 'set -o vi'. I wrongly thought there are 3 modes: emacs,
vi, and the one I asked about (the one described in the sh man page).


So, the short answer to my question would probabbly be: the commands
described in the mentioned section are relevant when the vi editing mode
of ksh is on.


Thanks
Ruda

Reply via email to