Home | History | Annotate | Download | only in ksh
History log of /src/bin/ksh/lex.c
RevisionDateAuthorComments
 1.24  26-Sep-2019  mlelstv Fix FALLTHROUGH comments.
 1.23  08-May-2018  kamil branches: 1.23.2;
Stop using the register keyword in ksh(1)

ksh also does some strange things with it, like put it in argument lists.

No functional change intended.

PR bin/53237 ksh: remove register keyword by Nia Alarie
 1.22  24-Jan-2018  kamil branches: 1.22.2;
ksh: Rename a local function tsearch to mytsearch

This removes a clash with well-known libc function tsearch(3) from POSIX.

This allows to build ksh against MSan.

The new name might not be perfect, but long term ksh should be switched to
the libc version.

Sponsored by <The NetBSD Foundation>
 1.21  30-Jun-2017  kamil ksh: Upgrade to C99 <stdbool.h>

This shell already used C99 functions.
 1.20  30-Jun-2017  kamil ksh: Assume ANSI C prototypes
 1.19  23-Jun-2017  kamil ksh: Use ANSI C varargs, drop support for older version <varargs.h>
 1.18  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.17  22-Jun-2017  kamil Temporarily revert previous.

emacs.* gets wrong code in generation
 1.16  22-Jun-2017  kamil Remove os2 support in ksh(1)

OK by <kre>
 1.15  16-Oct-2011  joerg Don't use non-literal format strings.
 1.14  23-Jan-2011  hauke The previous commit removed a { }�block, and unintendedly introduced a
C99ism (inlined variable declaration), which hurts when pdksh is used
for bootstrapping pkgsrc. Move the two declarations to the beginning
of the block.
 1.13  27-Oct-2008  apb branches: 1.13.14;
In foo="`echo \"hi\"`", the backslashes should be removed by the outer
double quotes, not seen by the inner backquotes. Previously, ksh(1)
handled this correctly in non-posix mode but incorrectly in posix mode.

The previous comments in src/bin/ksh/lex.c quote parts of some version
of the POSIX specification. The version of POSIX being quoted is not
identified, but the wording is very similar to that in SUSv3
<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html>.

It seems clear that the words "having escape characters removed"
mean, in that context, that the backslash before the double quote in
"...`...\"...`..." is removed as part of the handling of the outer
double quotes, so that the backslash is not present when the inner
backquotes are handled. The new code in this commit follows this
interpretation. The previous code followed a different interpretation
which is now believed to be incorrect.

Discussed in tech-userlevel. Closes PR 26493.
 1.12  11-Sep-2005  christos The following should print \"; from OpenBSD
$ cat << EOF
\"
EOF
 1.11  19-Apr-2005  rillig Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
 1.10  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.9  23-Jun-2003  agc Add NetBSD RCS Ids.
 1.8  20-Jan-2003  simonb The Double-Semi-Colon Police.
 1.7  20-Oct-1999  hubertf make this build with -Werror
 1.6  20-Oct-1999  hubertf resolve conflicts
 1.5  04-Nov-1998  christos branches: 1.5.4;
char->unsigned char casts for is*()
 1.4  19-Aug-1998  thorpej Add some braces to make egcs happy.
 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.5  20-Oct-1999  hubertf Import pdksh V5.2.14.
Includes lots of bugfixes.
 1.1.1.4  18-Dec-1996  jtc import pdksh 5.2.12
 1.1.1.3  09-Oct-1996  jtc import pdksh 5.2.11
 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.5.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.13.14.1  08-Feb-2011  bouyer Sync with HEAD
 1.22.2.1  21-May-2018  pgoyette Sync with HEAD
 1.23.2.3  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.23.2.2  21-Apr-2020  martin Sync with HEAD
 1.23.2.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed