Home | History | Annotate | Download | only in ksh
History log of /src/bin/ksh/edit.c
RevisionDateAuthorComments
 1.36  03-Oct-2024  rillig bin: fix lint warning "effectively discards 'const'"

For example: src/bin/ed/io.c(339): warning: call to 'strchr' effectively
discards 'const' from argument [346]

No binary change.
 1.35  03-Jun-2018  kamil branches: 1.35.2; 1.35.14;
ksh: Remove symbol clash with libc

Rename local function twalk() to ksh_twak().
This is needed for installing interceptors in sanitizers.

Sponsored by <The NetBSD Foundation>
 1.34  01-Jul-2017  joerg branches: 1.34.4;
Kill enough K&R cruft to build with clang again.
 1.33  30-Jun-2017  kamil ksh: Eliminate dead function x_complete_word()
 1.32  30-Jun-2017  kamil ksh: Upgrade to C99 <stdbool.h>

This shell already used C99 functions.
 1.31  30-Jun-2017  kamil ksh: Drop support for systems without <sys/stat.h>

In future the order of includes will be normalized with KNF.

No functional change intended.
 1.30  22-Jun-2017  kamil Reapply removal of code from 90ties for OS/2 Cygwin AIX HPUX SCOUnix

Added missing #endif terminator in emacs.c
 1.29  22-Jun-2017  kamil Temporarily revert previous.

emacs.* gets wrong code in generation
 1.28  22-Jun-2017  kamil Remove sco unix 3.2v4.1 support (from 1992) from ksh(1)

OK by <kre>
 1.27  22-Jun-2017  kamil Remove os2 support in ksh(1)

OK by <kre>
 1.26  22-Jun-2017  kamil Remove ancient cygwin support in ksh(1)

OK by <kre>
 1.25  05-Jun-2010  sjg PR: 39604
Reviewed by:

add_glob:
Do not stop scanning if we see '$' as it does more harm than good.
For $HOME/tm we should return $HOME/tm*
 1.24  02-Apr-2010  plunky - int putbuf_func ARGS((const char *s, size_t len));
+ int (*putbuf_func) ARGS((const char *, size_t));

for pcc
- did not recognise pointer to function
- argument names shadowed other arguments
 1.23  24-Nov-2009  seanb Back out fix for PR 22846 as it has issues. See PR 22846 for details.
 1.22  25-Apr-2009  lukem Fix most of the -Wsign-compare issues.
 1.21  28-Jan-2007  cbiere branches: 1.21.20;
* Escape '?', '[', ']' like other meta characters.
* Partial fix for completion when '[' is in the way.
* Addresses PR bin/22846.
 1.20  14-May-2006  christos Don't free random memory; thanks gcc-4.
 1.19  27-Apr-2006  christos Avoid double free.
 1.18  24-Apr-2006  christos Coverity CID 2995: Fix memory leak.
 1.17  11-Sep-2005  christos Process window size changes after xread(). [change window size]
echo $COLUMS $LINES; will now print the new sizes immediately, instead
of after the second echo. From otto@OpenBSD
 1.16  26-Jun-2005  christos warns=3
- remove param names from function decls
- sprinkle const
- rename shadowed variables
- XXX: there is a lot of fishy __UNCONST going on.
 1.15  23-May-2005  rillig Fixed wrong use of the <ctype.h> functions by adding (unsigned char) casts.
 1.14  07-Jul-2004  mycroft Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
 1.13  11-Sep-2003  jmmv Add ':' to the list of characters to be escaped. Fixes completion problems
when the filename includes this character.
 1.12  26-Aug-2003  wiz From OpenBSD:
revision 1.18
date: 2003/08/22 18:17:10; author: fgsch; state: Exp; lines: +2 -2
in word location, fix forward scanning so it correctly account for any
escaped char and not only spaces.
for "foo (bar.a)" and "foo (bar a)", cd foo\ \(bar.<tab> will correctly
expand to foo\ \(bar.a\).
otto@ and pval@ ok.
 1.11  23-Jun-2003  agc Add NetBSD RCS Ids.
 1.10  07-May-2003  wiz Fix completion of files containing #. From Soren Jacobsen in PR 21486.
 1.9  06-May-2003  wiz Add ` (backquote) to quoted characters for completion. From fgsch@openbsd.
Okayed by christos.
 1.8  25-Sep-2002  provos change complete-list to first complete and then print a list,
also complete after '=' (dd), and ':' (ssh) and ` (backtick)
improvements from camield@openbsd.org. approved by perry and thorpej.
 1.7  25-Jan-2002  sjg Fix some aspects of globbing - in emacs mode at least.
echo ~<ESC><ESC> and $HOME<ESC><ESC> as well as ~/b<ESC><ESC> all
now expand correctly.
 1.6  02-Nov-1999  jdolecek branches: 1.6.6;
Implement (somewhat enhanced) idea stealed from bash:
when completing the filename (either in vi mode with vi-tabcomplete on,
or in emacs mode after double esc), escape any shell special characters
and chars from $IFS with backslash - very handy especially when
dealing with filenames containing spaces

The patch has been sent to maintainer, but I haven't got any reply yet even
after about a month :(
 1.5  20-Oct-1999  hubertf resolve conflicts
 1.4  04-Nov-1998  christos branches: 1.4.4;
char->unsigned char casts for is*()
 1.3  20-Jul-1997  christos Fix compiler warnings
Add WARNS=1
 1.2  12-Jan-1997  tls RCS ID Police
 1.1  21-Sep-1996  jtc branches: 1.1.1;
Initial revision
 1.1.1.3  20-Oct-1999  hubertf Import pdksh V5.2.14.
Includes lots of bugfixes.
 1.1.1.2  09-Oct-1996  jtc import pdksh 5.2.9
 1.1.1.1  21-Sep-1996  jtc import pdksh 5.2.8
 1.4.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.6.1  06-Feb-2002  he Pull up revision 1.7 (requested by sjg):
Fix some aspects of globbing, particularly in emacs mode.
 1.21.20.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.34.4.1  25-Jun-2018  pgoyette Sync with HEAD
 1.35.14.1  02-Aug-2025  perseant Sync with HEAD
 1.35.2.2  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.35.2.1  21-Apr-2020  martin Sync with HEAD

RSS XML Feed