tg
c763e7b0e9
revert the CORD debugging aid
...
(introduced so that ORD could eval its args twice in !DEBUG)
2018-01-14 00:03:05 +00:00
tg
dde8500a24
some ord() debugging; CORD for case, ORD evaluates twice, for debugging
2018-01-13 23:55:15 +00:00
tg
c4acfa38cc
unbreak vi mode '0' movement, bug introduced in r1.323
...
reported by Larry Hynes <larry@larryhynes.com>
2017-08-27 23:33:50 +00:00
tg
d8d8ec4466
go home Coverity, you’re drunk
...
code refactoring to work around it not recognising the correct code path
2017-08-08 00:03:56 +00:00
tg
a318b33ace
Coverity 1416283
2017-08-07 23:23:12 +00:00
tg
868d982efb
sprinkle tons more ord() around
...
this is really not funny… mksh-ng will use even more “unsigned only”
2017-05-05 22:53:32 +00:00
tg
cc725e67ca
switch EBCDIC to “nega-UTF8”
2017-05-05 20:36:03 +00:00
tg
e6395046df
use strnul(); optimise
2017-04-29 22:04:31 +00:00
tg
55d20ee9d2
instead of disabling, make it work
2017-04-29 14:20:24 +00:00
tg
1c6b2d1cb8
allow backslash escapes for bind for ^ and \ o̲n̲l̲y̲; also more EBCDIC-friendly
2017-04-28 03:37:44 +00:00
tg
fba6940ba4
control character madness, but more compiler-friendly
2017-04-28 03:28:19 +00:00
tg
1289bc69fb
apply most of the remaining parts of the EBCDIC patch, sans the CTRL() changes
2017-04-28 02:24:58 +00:00
tg
8df7c0c94a
BEL was, and Vi mode is, not EBCDIC-safe
2017-04-28 00:49:33 +00:00
tg
2231ff566d
commit the optimisation result from the new fast character classes
2017-04-28 00:38:33 +00:00
tg
13e91621ca
fixup the remaining issues and last optimisations
2017-04-27 23:12:49 +00:00
tg
d54d4aab50
batch of optimisations
2017-04-27 20:22:28 +00:00
tg
1080008a8f
eliminate legacy macros
2017-04-27 19:33:53 +00:00
tg
3dff460cde
prepare the new fast character classes, not live yet: need sanity check
...
unfortunately we need at least 21 or so, maybe 19, classes, so sizing
things down to short is not possible; we can splurge with 32 bit thus
2017-04-22 00:07:10 +00:00
tg
d3be19ac69
now actually do comparisons for sorting ASCIIbetically
2017-04-21 20:06:06 +00:00
tg
e18a509a80
make ord() result unsigned int; add asc() which is:
...
• not designed to be emitted, only used in comparisons with
other asc() results
• on EBCDIC platforms, the mapping of an EBCDIC octet to their
corresponding ASCII or Unicode/UCS-4 codepoint or, if there
is no mapping, a distinct value above all valid Unicode codepoints
• on nōn-EBCDIC platforms, just the identity mapping of the input
octet into their ord() value
Intended use are ASCII-ish character ops, including ranges (“A-Z”),
mapping from those to the corresponding digit offset, and sorting
of things in an ASCIIbetical way
2017-04-21 19:50:09 +00:00
tg
36ea8e6171
on ^C (INTR, QUIT edchars), shove input line into history
2017-04-21 19:08:18 +00:00
tg
30cae62468
(very few) fixes and a couple of workarounds for Coverity
2017-04-12 16:46:23 +00:00
tg
86cb621c88
fix ^O if modified; LP#1675842
2017-04-12 15:54:47 +00:00
tg
ca6bd1f99b
make -masm=intel safe: don’t call a module-global variable “es”
2017-04-08 20:35:03 +00:00
tg
3909a42540
fix reentrancy of 'typeset -f' output in the face of aliases; also,
...
move alias handling for COMSUBs and friends to parse time by request
of Martijn Dekker (and for consistency with function definitions)
2017-04-06 01:59:58 +00:00
tg
e52d30ac2e
plug a small memory leak
2017-04-05 22:54:51 +00:00
tg
ced705ae04
handle multibyte backspace in ^R
2017-04-02 15:43:24 +00:00
tg
b22af76755
do not output incomplete multibyte chars in ^R
2017-04-02 15:42:59 +00:00
tg
718d397fff
merge mksh-os2 by KO Myung-Hun <komh@chollian.net> from https://github.com/komh/mksh-os2
2017-04-02 15:00:45 +00:00
mirabilos
e216226f68
mostly more KNF
2017-03-26 00:18:21 +01:00
KO Myung-Hun
c19b8b104c
Merge remote-tracking branch 'mksh/master'
2017-03-22 17:50:23 +09:00
tg
bc4397e28a
fixup tilde expansion comments; revert a few bogus dirsep changes
...
cf. <Pine.BSM.4.64L.1703112129500.29506@herc.mirbsd.org>
2017-03-11 22:49:56 +00:00
KO Myung-Hun
a2e965cad3
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
Makefile
edit.c
eval.c
exec.c
main.c
misc.c
sh.h
var.c
2016-11-12 13:22:58 +09:00
tg
0ba220d2c4
gcc 6.2 warnings (stupid uninitialised that wasn't, plus FALLTHROUGH fixes)
2016-11-11 23:48:30 +00:00
tg
7b4bee7e58
collective R54 release preparation multi-merger:
...
install both lksh and mksh manpages from Build.sh (Martijn Dekker)
spelling fixes (Larry Hynes)
manpage improvements (Martijn Dekker)
initial port to Harvey-OS’ APEX (Ronald G. Minnich, Elbing Miss, Álvaro Jurado)
more from komh’s OS/2 port (KO Myung-Hun)
2016-11-11 23:31:39 +00:00
tg
6c04e4a665
make print -c honour line separator
2016-11-11 21:13:25 +00:00
tg
5ba6be5837
put print_columns options into a helper struct, eases passing things around
2016-11-11 20:14:18 +00:00
tg
e16b0b9d5b
first implementation of “print -c” for columnising, currently hardcoded newlines
2016-11-11 19:59:39 +00:00
tg
d18f9133c8
fix English (thanks to Andreas Buschka); TIL:
...
• to start ⇒ a start
• to begin ⇒ a beginning
2016-09-01 12:59:12 +00:00
KO Myung-Hun
d4be6d4358
Merge tag 'mksh-R53' into HEAD
...
Conflicts:
exec.c
2016-08-13 15:05:49 +09:00
tg
cc6857dfb6
clean up chtypes use
2016-08-01 18:42:42 +00:00
tg
59619ee2ab
fix sign comparison warning pointed out by Debian’s GCC
...
this commit sponsored by ⮡ tarent
2016-08-01 14:25:39 +00:00
tg
b8180fba1f
fix two int→size_t; reduce edchar struct size
2016-07-28 21:39:04 +00:00
tg
b330976689
this hack from commitid 1004651F21443013C37 is no longer necessary (thought so)
2016-07-26 22:55:35 +00:00
tg
9dbd643504
implement new evaluate-region editing command (!MKSH_SMALL)
...
while here, fixup x_redraw refactoring x_clrtoeol, x_pprompt, and x_lastpos
2016-07-26 21:37:26 +00:00
tg
04454868ff
the limit parameter to x_redraw was completely bogus, drop it for now
2016-07-26 20:43:14 +00:00
tg
644536732b
eek, forgot some conditions
2016-07-26 20:13:40 +00:00
tg
4310e75f75
make tmux hack workable for now (libtermcap is… ugly)
...
• track $TERM for the types tmux uses /^screen(-.*)?$/
• when tmux is in use (or GNU screen, really), use the, now
hardcoded, clear-to-EOL string; otherwise, use the old behaviour
• drop unnecessary x_e_rebuildline()
carefully tested to behave no worse than R52b
2016-07-25 20:43:54 +00:00
tg
c3e794c4d0
rework string pooling; disable our own (rely on compiler’s)…
...
• if HAVE_STRING_POOLING is set to 1
• if HAVE_STRING_POOLING is set to 2 and not GCC < 4 is used
• if HAVE_STRING_POOLING is not set to 0 and LLVM or GCC >= 4 is used
Closes: LP#1580348
2016-07-25 00:04:48 +00:00
tg
8370c0dd4d
experimentally use MKSH_CLRTOEOL_STRING instead of lots of spaces followed
...
by lots of backspaces for many clearing scenarios; requested by tmux user
slagtc on IRC
2016-07-12 23:07:10 +00:00