Commit Graph

23 Commits

Author SHA1 Message Date
kamil
2c22621e8f ksh: Assume ANSI C prototypes 2017-06-30 02:51:14 +00:00
kamil
acc2fa794c ksh: Use ANSI C varargs, drop support for older version <varargs.h> 2017-06-23 00:18:01 +00:00
kamil
eb13ce8ce3 Reapply removal of code from 90ties for OS/2 Cygwin AIX HPUX SCOUnix
Added missing #endif terminator in emacs.c
2017-06-22 14:20:46 +00:00
kamil
266bea007e Temporarily revert previous.
emacs.* gets wrong code in generation
2017-06-22 14:11:27 +00:00
kamil
e5604d4f02 Remove os2 support in ksh(1)
OK by <kre>
2017-06-22 13:33:39 +00:00
joerg
a2567f3beb Don't use non-literal format strings. 2011-10-16 17:12:11 +00:00
hauke
2a758472b6 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.
2011-01-23 17:15:15 +00:00
apb
3f6e3bc032 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.
2008-10-27 19:52:28 +00:00
christos
57c8db64ce The following should print \"; from OpenBSD
$ cat << EOF
\"
EOF
2005-09-11 22:16:00 +00:00
rillig
4f6457e756 Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
2005-04-19 20:14:29 +00:00
mycroft
f662a744b6 Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
2004-07-07 19:20:09 +00:00
agc
6377cac711 Add NetBSD RCS Ids. 2003-06-23 11:38:51 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
hubertf
b556fc7b2a make this build with -Werror 1999-10-20 15:49:15 +00:00
hubertf
48ee8d1290 resolve conflicts 1999-10-20 15:09:58 +00:00
christos
1f3392af64 char->unsigned char casts for is*() 1998-11-04 18:27:20 +00:00
thorpej
45e5a86960 Add some braces to make egcs happy. 1998-08-19 01:43:22 +00:00
christos
90647eb832 Fix compiler warnings
Add WARNS=1
1997-07-20 17:41:56 +00:00
tls
2ab2e20cff RCS ID Police 1997-01-12 19:11:37 +00:00
jtc
614eee469b import pdksh 5.2.12 1996-12-18 04:50:04 +00:00
jtc
0de5aac478 import pdksh 5.2.11 1996-10-09 15:29:01 +00:00
jtc
5a4124868a import pdksh 5.2.9 1996-10-09 15:12:31 +00:00
jtc
e1b2664cf1 import pdksh 5.2.8 1996-09-21 23:35:13 +00:00