History log of /netbsd/bin/ksh/lex.c (Results 1 – 25 of 27)
Revision Date Author Comments
# ce6c4c31 26-Sep-2019 mlelstv <mlelstv@NetBSD.org>

Fix FALLTHROUGH comments.


# ce8041bd 08-May-2018 kamil <kamil@NetBSD.org>

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

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

show more ...


# ed120974 24-Jan-2018 kamil <kamil@NetBSD.org>

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

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>

show more ...


# 13351aa1 30-Jun-2017 kamil <kamil@NetBSD.org>

ksh: Upgrade to C99 <stdbool.h>

This shell already used C99 functions.


# 0329fa43 30-Jun-2017 kamil <kamil@NetBSD.org>

ksh: Assume ANSI C prototypes


# 1e3bb311 23-Jun-2017 kamil <kamil@NetBSD.org>

ksh: Use ANSI C varargs, drop support for older version <varargs.h>


# 79a55b5f 22-Jun-2017 kamil <kamil@NetBSD.org>

Reapply removal of code from 90ties for OS/2 Cygwin AIX HPUX SCOUnix

Added missing #endif terminator in emacs.c


# b8542049 22-Jun-2017 kamil <kamil@NetBSD.org>

Temporarily revert previous.

emacs.* gets wrong code in generation


# 7f4c58ac 22-Jun-2017 kamil <kamil@NetBSD.org>

Remove os2 support in ksh(1)

OK by <kre>


# 5d331600 16-Oct-2011 joerg <joerg@NetBSD.org>

Don't use non-literal format strings.


# 876605c3 23-Jan-2011 hauke <hauke@NetBSD.org>

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

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.

show more ...


# 3f6e3bc0 27-Oct-2008 apb <apb@NetBSD.org>

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

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.

show more ...


# 57c8db64 11-Sep-2005 christos <christos@NetBSD.org>

The following should print \"; from OpenBSD
$ cat << EOF
\"
EOF


# 4f6457e7 19-Apr-2005 rillig <rillig@NetBSD.org>

Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.


# f662a744 07-Jul-2004 mycroft <mycroft@NetBSD.org>

Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084


# 6377cac7 23-Jun-2003 agc <agc@NetBSD.org>

Add NetBSD RCS Ids.


# 276fd166 20-Jan-2003 simonb <simonb@NetBSD.org>

The Double-Semi-Colon Police.


# b556fc7b 20-Oct-1999 hubertf <hubertf@NetBSD.org>

make this build with -Werror


# 48ee8d12 20-Oct-1999 hubertf <hubertf@NetBSD.org>

resolve conflicts


# 1f3392af 04-Nov-1998 christos <christos@NetBSD.org>

char->unsigned char casts for is*()


# 45e5a869 19-Aug-1998 thorpej <thorpej@NetBSD.org>

Add some braces to make egcs happy.


# 90647eb8 20-Jul-1997 christos <christos@NetBSD.org>

Fix compiler warnings
Add WARNS=1


# 2ab2e20c 12-Jan-1997 tls <tls@NetBSD.org>

RCS ID Police


# 614eee46 18-Dec-1996 jtc <jtc@NetBSD.org>

import pdksh 5.2.12


# 0de5aac4 09-Oct-1996 jtc <jtc@NetBSD.org>

import pdksh 5.2.11


12