Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc/lib/libedit



Module Name:    basesrc
Committed By:   christos
Date:           Fri Nov 15 14:32:35 UTC 2002

Modified Files:
        basesrc/lib/libedit: chared.c chared.h common.c el.h emacs.c hist.c
            hist.h histedit.h map.c read.c refresh.c search.c search.h vi.c

Log Message:
PR/18995: David Laight: libedit fixes for posix conformant sh

The posix 'sh' specification defines vi-mode editing quite tightly.
The netbsd libedit code (used by sh to do this) was missing several
features, there were also minor errors in others.

Compare netbsd sh to the definition available from:
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
In particular the following were not supported:
        U - undo all changes to line
        | - goto column
        Y - yank to end of line
        y - yank
        # - comment out current line
        @ - take input from shell alias [1]
        G - goto numbered line in history buffer
        v - edit history line with vi
        _ - append word from last input line
        . - redo last command
Other minor changes have also been made.

[1] This needs the shell to define an appropriate routine to
return the text of the alias.  There is no requirement that
such a function exist.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 basesrc/lib/libedit/chared.c
cvs rdiff -r1.9 -r1.10 basesrc/lib/libedit/chared.h
cvs rdiff -r1.12 -r1.13 basesrc/lib/libedit/common.c basesrc/lib/libedit/el.h \
    basesrc/lib/libedit/search.c
cvs rdiff -r1.11 -r1.12 basesrc/lib/libedit/emacs.c basesrc/lib/libedit/vi.c
cvs rdiff -r1.10 -r1.11 basesrc/lib/libedit/hist.c
cvs rdiff -r1.7 -r1.8 basesrc/lib/libedit/hist.h
cvs rdiff -r1.19 -r1.20 basesrc/lib/libedit/histedit.h
cvs rdiff -r1.17 -r1.18 basesrc/lib/libedit/map.c
cvs rdiff -r1.22 -r1.23 basesrc/lib/libedit/read.c
cvs rdiff -r1.21 -r1.22 basesrc/lib/libedit/refresh.c
cvs rdiff -r1.5 -r1.6 basesrc/lib/libedit/search.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index