OpenBSD CVS

CVS log for src/bin/ksh/emacs.c


[BACK] Up to [local] / src / bin / ksh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.90 / (download) - annotate - [select for diffs], Wed Jun 21 22:22:08 2023 UTC (11 months, 2 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.89: +1 -5 lines
Diff to previous 1.89 (colored)

ksh: escape control chars when displaying file name completions.
If there are multiple matches when using autocomplete, the list of
matching file names was output as-is.  However, for a single match,
control characters are escaped before the file name is displayed.
This makes the behavior more consistent by escaping control chars
in the list of matches too.  Discussed with deraadt@, OK op@

Revision 1.89 / (download) - annotate - [select for diffs], Sat Oct 9 21:38:00 2021 UTC (2 years, 8 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

In ksh(1) emacs search-history mode, emitting a NUL character causes
invalid matches and unexpected behaviour.

Fix this by instead making a NUL character abort the search-history mode,
leaving the handling of said input to the "ordinary" command editing.

ok tb@

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jun 27 15:53:33 2021 UTC (2 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.87: +13 -6 lines
Diff to previous 1.87 (colored)

In addition to 2-byte and 3-byte UTF-8 sequences, correctly identify all
4-byte UTF-8 sequences and not just some of them, to keep them together
and avoid passing them on byte by byte, helping tools like tmux(1).

While here, also do all the range tests with < and > rather than &
for uniformity and readability, and add some comments.

Input and OK jca@ and nicm@.

Soeren at Soeren dash Tempel dot net originally reported the bug
and provided an incomplete patch that was used as a starting point,
and he also tested this final patch.

Revision 1.87 / (download) - annotate - [select for diffs], Fri May 8 14:30:42 2020 UTC (4 years, 1 month ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.86: +7 -5 lines
Diff to previous 1.86 (colored)

Use proper function pointer type instead of void *

Mixing up function and void pointers isn't defined by POSIX or the
C standard.  POSIX only specifies that casting the result of dlsym(3) to
an appropriate function pointer works.

Avoid all this by using a typedef.

from Michael Forney, ok tb@

Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 3 14:55:12 2019 UTC (5 years, 2 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Bind ^L (C-l) to clear-screen instead of redraw

Slightly more useful for some, same defaults as bash.
No objection deraadt@ phessler@, ok tb@ kn@ benno@

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jun 18 17:03:58 2018 UTC (5 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.84: +31 -6 lines
Diff to previous 1.84 (colored)

Add clear-screen emacs editing command, currently not bound to a
key by default.  The shell will query the terminfo database to
find the escape sequence to clear the screen.  OK deraadt@

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 16 17:17:18 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

One minor scan-build warning

emacs.c:1041:2: warning: Value stored to 'cp' is never read

Revision 1.83 / (download) - annotate - [select for diffs], Sun Jan 14 16:04:21 2018 UTC (6 years, 4 months ago) by anton
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

unifdef BRACE_EXPAND; ok jca@

Revision 1.82 / (download) - annotate - [select for diffs], Mon Jan 8 13:01:31 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.81: +99 -99 lines
Diff to previous 1.81 (colored)

Remove unused "args" param from kb_add(), it is always NULL.
OK anton@ jca@

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jan 7 19:18:56 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.80: +12 -11 lines
Diff to previous 1.80 (colored)

Add proper bounds checking to kb_add().  OK anton@

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 6 16:28:58 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.79: +8 -9 lines
Diff to previous 1.79 (colored)

Bring back the sign compare changes, this time with a fix from otto@
that fixes the issues seen on hppa.  OK deraadt@ otto@

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 4 19:06:16 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

Back out sign compare changes that appear to cause problems on hppa.
Requested by deraadt@

Revision 1.78 / (download) - annotate - [select for diffs], Mon Jan 1 19:45:56 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored)

Add WARNINGS=yes to ksh and fix the resulting sign compare warnings.
OK tb@

Revision 1.77 / (download) - annotate - [select for diffs], Wed Dec 27 13:02:57 2017 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.76: +1 -3 lines
Diff to previous 1.76 (colored)

Add -Wshadow to Makefile and fix the resulting warnings.  Many of
the warnings are due to the use of globals with generic names,
specifically "options" and "path".  I've renamed "options" to
"sh_options" since it holds the shell options and "path" to
"search_path".  OK jca@ tb@

Revision 1.76 / (download) - annotate - [select for diffs], Mon Dec 18 19:04:53 2017 UTC (6 years, 5 months ago) by anton
Branch: MAIN
Changes since 1.75: +3 -1 lines
Diff to previous 1.75 (colored)

Add another pair of home/end key bindings; from Lari Rasku.

ok jca@

Revision 1.75 / (download) - annotate - [select for diffs], Sun Nov 26 20:34:15 2017 UTC (6 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.74: +1 -32 lines
Diff to previous 1.74 (colored)

Remove the "version" interactive function in emacs mode.

Not bound by default and not very useful.  ok schwarze@ anton@

Revision 1.74 / (download) - annotate - [select for diffs], Wed Nov 22 12:17:34 2017 UTC (6 years, 6 months ago) by anton
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Fix some incorrectness related to Emacs editing mode in ksh:

- Keep the order of bindings in sync between the manual and implementation
- Fix wrongly documented bindings in the manual
- Break out commands without a default binding in the manual

ok jmc@ tb@

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 30 17:02:53 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.72: +1 -4 lines
Diff to previous 1.72 (colored)

Stop exposing the emacs-usemeta option, and warn when trying to set it.

Unused since 2012, to be removed after 6.2.  Input from anton@,
ok anton@ millert@

Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 30 16:59:23 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored)

Drop needless comment

ok anton@ millert@

Revision 1.71 / (download) - annotate - [select for diffs], Tue Aug 29 23:04:50 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.70: +3 -11 lines
Diff to previous 1.70 (colored)

Kill a useless setlocale() query

Pointless since the removal of the setlocale() call in main.c:rev1.82,
the emacs-usemeta flag isn't used in the code since 2012.  This kills
a chunk of code in a statically linked ksh.

ok millert@

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jun 25 17:28:39 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.69: +1 -3 lines
Diff to previous 1.69 (colored)

No need to NUL-terminate the line buffer since it's handled by x_e_getu8() by
now.

ok schwarze@

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jun 25 08:51:52 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.68: +52 -12 lines
Diff to previous 1.68 (colored)

Don't output partial UTF-8 characters in ksh emacs mode. Instead, try to read a
complete UTF-8 character first. Fixes an issue while running ksh in tmux where
UTF-8 characters inserted in columns other than the last one are discarded.

With help from nicm@ and schwarze@ who also wrote the UTF-8 validation, thanks!

ok schwarze@

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jun 20 17:32:20 2017 UTC (6 years, 11 months ago) by brynet
Branch: MAIN
Changes since 1.67: +1 -40 lines
Diff to previous 1.67 (colored)

'^T' is documented to be bounded to transpose-chars while in emacs
mode, not "stuff". While here, remove the poorly described "stuff"
and "stuff" bind functions as well..

In the unlikely event anyone has those in .kshrc, they'll need to
be removed.

ok anton@

Revision 1.67 / (download) - annotate - [select for diffs], Fri May 12 14:37:52 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.66: +4 -2 lines
Diff to previous 1.66 (colored)

Improve UTF-8 handling on lines that are wider than the terminal,
in two respects:

1. During output in x_e_putc(), when counting display columns,
skip UTF-8 continuation bytes.  Fixes backward movements that
cause horizontal scrolling.

2. After deleting characters, recalculate the last byte that fits
on the line.

Patch from <Anton dot Lindqvist at gmail dot com> on tech@.
OK millert@ tb@

Revision 1.66 / (download) - annotate - [select for diffs], Tue Aug 9 11:04:46 2016 UTC (7 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.65: +4 -3 lines
Diff to previous 1.65 (colored)

In emacs incremental search mode (^R),
make commands starting with the escape key (^[) work as documented.
Long-standing bug, this time reported by Dave minus Cohen dot com.
OK natano@ halex@

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 26 17:39:31 2016 UTC (8 years, 4 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.64: +4 -2 lines
Diff to previous 1.64 (colored)

remove a useless macro

ok nicm@

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jan 8 13:17:57 2016 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.63: +9 -3 lines
Diff to previous 1.63 (colored)

Next step in UTF-8 support:

1. Improve all functions involving words by allowing non-ASCII
characters to be part of words.
2. Allow insertion of non-ASCII characters without screwing up the
display, by backing up to the start byte after inserting a continuation
byte, and starting to re-print there.
3. Fix forward movement which i didn't get quite right in my previous
commit: Always advance to a start byte, never to a final continuation
byte, or the next insertion would split the character in the middle.

OK mpi@

Revision 1.63 / (download) - annotate - [select for diffs], Wed Dec 30 15:21:42 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.62: +3 -1 lines
Diff to previous 1.62 (colored)

add another combo for home/end keys that works in tmux.
ok bmercer gsoares nicm sthen

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 14 13:59:42 2015 UTC (8 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (colored)

Move system headers from sh.h to those files that actually need them.

ok mmcc@ a while ago

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 10 10:00:14 2015 UTC (8 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.60: +24 -5 lines
Diff to previous 1.60 (colored)

In emacs command-line editing mode, make sure that moving left and
right can only move by whole characters, not into the middle of a
character, and that deleting characters can only delete characters
whole, not individual bytes out of characters.
Based on parts of a patch by Frederic Nowak <fnwk at mailbox dot org>,
tweaked by me.
OK tedu@ semarie@ mpi@

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 19 14:42:16 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

Move string.h include from sh.h to the files that use it.

ok nicm@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Oct 19 02:15:45 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.58: +5 -3 lines
Diff to previous 1.58 (colored)

Apply style(9) to header includes.

ok nicm@

Revision 1.58 / (download) - annotate - [select for diffs], Fri Oct 16 23:18:59 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.57: +2 -4 lines
Diff to previous 1.57 (colored)

Change x_do_ins()'s arg type from int to size_t for correctness's sake,
and to silence a compiler warning. Also remove its prototype, which is
directly above its definition.

ok tedu@

Revision 1.57 / (download) - annotate - [select for diffs], Fri Oct 16 17:14:04 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Cast iscntrl()'s arg to unsigned char.

ok nicm@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Oct 10 15:31:00 2015 UTC (8 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.55: +3 -17 lines
Diff to previous 1.55 (colored)

Replace calls to x_emacs_putbuf() with x_do_ins() since all
x_emacs_putbuf() does is call x_do_ins().
From mksh via Michael McConville

Revision 1.55 / (download) - annotate - [select for diffs], Sat Oct 10 07:38:18 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.54: +1 -4 lines
Diff to previous 1.54 (colored)

Unused macros; from Michael McConville.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 9 19:36:27 2015 UTC (8 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.53: +2 -3 lines
Diff to previous 1.53 (colored)

remove null check before afree. from Michael McConville

Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 18 07:28:24 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Last of the (thing *)0 -> NULL, from Michael McConville. No binary
change.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 10 22:48:58 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

Replace newline and space defines by "\n" and " " directly, from Michael
McConville. ok millert

Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 1 13:12:31 2015 UTC (8 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (colored)

remove casts and null checks before free. from Michael McConville
ok deraadt

Revision 1.50 / (download) - annotate - [select for diffs], Wed Mar 25 12:10:52 2015 UTC (9 years, 2 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Bind the Delete key (ESC[3~) to delete-char-forward

ok mpi@

Revision 1.49 / (download) - annotate - [select for diffs], Mon Feb 16 01:44:41 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

bcmp to memcmp

Revision 1.48 / (download) - annotate - [select for diffs], Tue Dec 17 16:37:05 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.47: +16 -14 lines
Diff to previous 1.47 (colored)

ctype cleanups.  Repeated re-audits of this sensitive area by okan and
myself, with a variety of other people spending some time as well.
Thanks.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 28 10:33:37 2013 UTC (10 years, 6 months ago) by sobrado
Branch: MAIN
Changes since 1.46: +18 -18 lines
Diff to previous 1.46 (colored)

remove trailing whitespaces; use tabs instead of spaces where appropriate;
no binary changes.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 10 10:15:01 2012 UTC (12 years ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.45: +15 -7 lines
Diff to previous 1.45 (colored)

Correctly expand bindings containing macros. Fix a regression introduced
in the keybinding system rewrite, reported by Lars Engblom.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 30 03:51:29 2012 UTC (12 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.44: +476 -331 lines
Diff to previous 1.44 (colored)

generalise ksh keybinding system - bindings are no longer limited in
length and need not start with ESC or ^X; patch from marco@ feedback mpi@

Revision 1.44 / (download) - annotate - [select for diffs], Mon Sep 5 04:50:33 2011 UTC (12 years, 9 months ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.43: +7 -2 lines
Diff to previous 1.43 (colored)

Fix hang in emacs mode.  To reproduce the hang go like: "^[16000l" which
would insert 16000 letter l'.  Going over the line limit makes no sense
so limit it's repetition and prevent the hang in the process.

ok guenther

Revision 1.43 / (download) - annotate - [select for diffs], Mon Mar 14 21:20:01 2011 UTC (13 years, 3 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.42: +1 -58 lines
Diff to previous 1.42 (colored)

remove unused SILLY game of life.

no binary change.

sure @deraadt

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 2 06:47:47 2009 UTC (15 years ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.41: +8 -4 lines
Diff to previous 1.41 (colored)

fix macro handling

Revision 1.41 / (download) - annotate - [select for diffs], Thu Aug 2 10:50:25 2007 UTC (16 years, 10 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.40: +7 -7 lines
Diff to previous 1.40 (colored)

fix memory leaks and one potential null deref found by coverity. from netbsd.
millert@ ok

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jul 10 17:12:41 2006 UTC (17 years, 11 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.39: +22 -3 lines
Diff to previous 1.39 (colored)

fix ksh prompt wrapping, from Marcus Glocker <marcus@nazgul.ch>.
tested by me and naddy, and others...
ok naddy@ and me.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 26 19:25:22 2005 UTC (18 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.38: +4 -5 lines
Diff to previous 1.38 (colored)

Fix a redraw problem that occurs when a recalled history line has
length equal to screen width - 2. Spotted by jmc@, tested by various.
ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Aug 1 04:27:31 2005 UTC (18 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

pascoe noted that ^V in ksh emacs mode is not what you expect -- literal
next as it is every other canonical mode, or emulation of canonical mode.
change it to act like it should
ok djm david marc tdeval pvalchev

Revision 1.37 / (download) - annotate - [select for diffs], Wed Mar 30 17:16:37 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +208 -238 lines
Diff to previous 1.36 (colored)

lots of indentation cleanup, now ksh is readable like our other code.
double checked to make sure no binaries change, and eyed by niallo

Revision 1.36 / (download) - annotate - [select for diffs], Mon Mar 28 21:28:22 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +6 -5 lines
Diff to previous 1.35 (colored)

spacing

Revision 1.35 / (download) - annotate - [select for diffs], Thu Feb 17 18:57:04 2005 UTC (19 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.34: +5 -1 lines
Diff to previous 1.34 (colored)

Printt ^D and newline on EOF in emacs mode like in vi mode.
Help and ok jaredy@ ok millert@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 23 11:29:02 2004 UTC (19 years, 5 months ago) by jsg
Branch: MAIN
Changes since 1.33: +8 -11 lines
Diff to previous 1.33 (colored)

Replace home rolled unsigned char type with u_char.
ok millert@

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.32: +22 -22 lines
Diff to previous 1.32 (colored)

Use stdbool.h instead of rolling our own bools.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.31: +118 -206 lines
Diff to previous 1.31 (colored)

Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of
dopprompt() prototype. ok millert@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 19 04:14:20 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +18 -18 lines
Diff to previous 1.30 (colored)

spacing

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 18 21:25:44 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.29: +71 -73 lines
Diff to previous 1.29 (colored)

deregister

Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.28: +34 -85 lines
Diff to previous 1.28 (colored)

Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.
First step in making the ksh code easier to read.  From Matthias Kilian

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 22 07:40:38 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.27: +9 -9 lines
Diff to previous 1.27 (colored)

typos from Jared Yanovich;
ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 1 15:47:40 2003 UTC (20 years, 9 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.26: +3 -4 lines
Diff to previous 1.26 (colored)

In emacs editing mode, ksh by default interprets a set 8th bit as
meta prefix, i.e. all characters with the top bit set (>= 0x80) are
taken as commands and cannot be entered literally.

Introduce a new shell option, emacs-usemeta, that allows to toggle
this behavior.  The default is the traditional behavior; to enter
8-bit characters use "set +o emacs-usemeta".

ok fgsch@, henning@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Aug 27 14:56:11 2003 UTC (20 years, 9 months ago) by fgsch
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

rename force_push to something more sensible.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 27 14:40:56 2003 UTC (20 years, 9 months ago) by fgsch
Branch: MAIN
Changes since 1.24: +5 -2 lines
Diff to previous 1.24 (colored)

escape on expand under emacs mode; otto@ ok.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Aug 26 17:55:01 2003 UTC (20 years, 9 months ago) by fgsch
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

fix backward and forward delete; from wiz@netbsd.org. many thanks.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Aug 23 02:30:59 2003 UTC (20 years, 9 months ago) by fgsch
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

under emacs mode, fix the case when the globbed file and the longest
prefix lenghts are equal ("a .b" and "a ab" by instance).
found and tested by otto@.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 2 19:44:12 2003 UTC (20 years, 10 months ago) by fgsch
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

don't push things unless force is true; avoid adding text again on yank-pop.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Aug 2 19:26:15 2003 UTC (20 years, 10 months ago) by fgsch
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

On ESC-y ESC-y (yank-pop), also check that there is something to
insert (some text has been killed before). from otto@, fix PR/3384.

On yank-pop error (no yank before), reset the index to killstack so
another yank-pop does not mangle the prompt if nothing was yanked, and
to avoid replacing a text when it shouldn't
(yank <something> yank-pop yank-pop).
otto@ ok.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 26 00:09:45 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)

protos

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 16 23:11:52 2003 UTC (21 years, 2 months ago) by tdeval
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

string cleaning.  ok tedu@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 28 09:45:09 2003 UTC (21 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

typos; from Brian Poole

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 16 00:13:53 2002 UTC (21 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.16: +19 -1 lines
Diff to previous 1.16 (colored)

enable meta key in emacs mode for 7-bit locales; provos@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 9 05:47:27 2002 UTC (22 years ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.15: +19 -19 lines
Diff to previous 1.15 (colored)

knf

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 17 12:39:31 2001 UTC (22 years, 11 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.14: +9 -9 lines
Diff to previous 1.14 (colored)

make file-completion work with ~ (tilde)

tested by provos@ and me

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 19 09:49:52 2001 UTC (23 years, 3 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.13: +36 -77 lines
Diff to previous 1.13 (colored)

bash-like 'double-tab' completion

- bind TAB (^I) to complete-list by default
- complete-list now lists 'ls style' not 'menu style'
- complete-list first completes; if that does not work, it lists
- fix a memleak in emacs.c, do_complete
- completion now works after '=' (dd), and ':' (ssh) and ` (backtick)
- a command can now start with a subdir from the current dir

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 24 03:12:12 2000 UTC (24 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Make application mode arrow keys work; fixes arrow keys on the console.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 14 22:04:02 1999 UTC (24 years, 7 months ago) by d
Branch: MAIN
Changes since 1.11: +19 -3 lines
Diff to previous 1.11 (colored)

quote metachars when completing filenames from jdolecek@netbsd. ok millert@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 4 19:11:13 1999 UTC (24 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Turn <tab> completion on by default for people used to bash, tcsh, etc...

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 14 13:37:23 1999 UTC (24 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.9: +11 -11 lines
Diff to previous 1.9 (colored)

pdksh-5.2.14

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:33 1999 UTC (25 years ago) by millert
Branch: MAIN
Changes since 1.8: +35 -7 lines
Diff to previous 1.8 (colored)

patches from pdksh 5.2.13.11

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 19 20:41:52 1999 UTC (25 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

Updates from pdksh-unstable-5.2.13.7.  Most notable change is:
    trap: exit traps now executed in subshells (without explicit exit call).
See the Changelog for a full list of changes.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 10 17:55:02 1999 UTC (25 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

sync with pdksh-unstable-5.2.13.6

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:20 1998 UTC (25 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally.
 o typeset -f FUNC doesn't print follows command (and expression) substitutions.
 o when re-allocating memory, too much may be copied from old memory.
 o set -o printed some options sans names.
 o emacs mode: <esc>. in very fist command causes core dump.
 o pdksh dumps core after a cd command.
 o typeset -i reports on array elements that have no value
   (at&t ksh reports on array base name - no index).
 o ulimit -ctn unlimittttted kills shell (resource exceeded).
 o ". /dev/null" says access denied.
 o flag field in aliases incorrectly changed (all flags set instead of
   clearing ISSET) in exec.c(flushcom).
 o ${#array[*]} prints largest index instead of number of (set) elements
   in an array (ksh88 does the former).
 o sys_siglist[] doesn't always have NSIG non-null entries...

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 25 19:01:51 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +4 -11 lines
Diff to previous 1.4 (colored)

pdksh-5.2.13 + local changes

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 19 13:58:39 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

back out

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 18 22:42:32 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

(foo *)0 -> NULL

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 19 20:08:48 1996 UTC (27 years, 9 months ago) by downsj
Branch: MAIN
Changes since 1.1: +55 -25 lines
Diff to previous 1.1 (colored)

update to pdksh-5.2.8

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 14 06:19:10 1996 UTC (27 years, 10 months ago) by downsj
Branch: pdksh
CVS Tags: pdksh-527
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import pdksh 5.2.7.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 06:19:10 1996 UTC (27 years, 10 months ago) by downsj
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.