92833fc6ce
fix utf_widthadj/utf_skipcols handling for the remaining cases I can spot
2016-05-05 22:56:15 +00:00
3da248755a
bump
2016-04-14 15:38:38 +00:00
4c4131dddf
commitid 10056D5D8AF01B31531 broke fix for Debian #783978 (add testsuite)
2016-04-09 13:55:12 +00:00
68f6e899ef
Merge tag 'mksh-R52c'
2016-03-05 14:59:34 +09:00
4ccfd5fab5
document upcoming set +o changes; bump
2016-03-04 18:28:42 +00:00
cb0604767f
address latest Debian gcc-snapshot’s warnings (some actual bugs!)
2016-03-04 14:26:16 +00:00
c2bdb1b9dd
check not-begun heredocs at EOF earlier
...
izabera reported they were not caught with “set -n”
2016-03-01 18:30:05 +00:00
f23ed68f00
clean up, avoid aliasing concerns in non-debug case
2016-02-26 21:53:37 +00:00
3b5f9c744c
I didn’t like the code behind command -[Vv] and whence, so I rewrote it.
...
Bugreport by Martijn Dekker <martijn@inlv.org > about POSIX non-compliance
2016-02-26 20:56:45 +00:00
a3c28ebd67
plug a few display problems with special parameter name expansions
...
reported by Stéphane Chazelas
2016-02-26 18:48:14 +00:00
e9364a4318
Merge remote-tracking branch 'mksh/master'
2016-02-25 14:56:35 +09:00
2a3773b70b
share structures better, less (void *) casts when we can stay typed
2016-02-24 02:08:39 +00:00
f0a042f070
implement mmap-using mechanism to catch buffer underruns inside mksh
...
(pulls stdio, is rather BSD-specific and memory-hungry and a bit slow)
2016-02-24 01:44:46 +00:00
36ea6b5f88
Merge remote-tracking branch 'mksh/master'
2016-01-24 16:43:45 +09:00
6eb125c18a
Merge commit '91ae6ad199035b1cf'
2016-01-24 16:36:38 +09:00
7c58621bc7
so, GCC is a real bitch
2016-01-21 19:58:13 +00:00
27179454a9
hotfix for newer GCC
2016-01-21 19:38:09 +00:00
188691d285
save 200 bytes off .text by revisiting string pooling
...
also, forgotten version bump
2016-01-21 18:24:45 +00:00
61f7661b92
fix errno in print/echo builtin; optimise (with partial rewrite)
2016-01-20 21:34:13 +00:00
046d8e5b7a
align with future POSIX on http://austingroupbugs.net/view.php?id=351
...
with accepted interpretation (*sigh*); merge VARASN|ARRAYVAR→CMDASN
2016-01-19 23:12:15 +00:00
c51e067e62
incorporate more feedback from schily
2016-01-14 23:18:11 +00:00
1b0e4f54cb
permit 'read -A/-a arr[idx]' as long as only one element is read;
...
fix corruption of array indicēs with this construct (LP#1533396)
2016-01-14 22:49:33 +00:00
2492c5692b
incorporate suggestions by J�rg Schilling
2016-01-13 17:20:52 +00:00
4059e105a2
fstat(2) after open(2) for set -C case when initial stat(2) was !S_ISREG
...
to fix race condition as suggested by jilles
2015-12-31 21:03:47 +00:00
0c41f2fdc8
Merge remote-tracking branch 'mksh/master'
2015-12-13 17:59:43 +09:00
b2b0c0bbb6
update for recent changes
2015-12-12 22:25:15 +00:00
788fdcd188
Merge remote-tracking branch 'mksh/master'
2015-10-26 11:24:15 +09:00
1a4f644d6e
save ~1½K from the bootfloppy by reusing MirBSD libkern wcwidth(3)
...
but don’t bother for this for the regular /bin/mksh either
to keep the generic code path tested well
2015-10-24 19:45:23 +00:00
780f220e23
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
check.t
exec.c
sh.h
2015-10-11 19:42:38 +09:00
cef386fb60
make “source” into a built-in command (keepasn, to match ksh93 and “dot”);
...
remove the “stop” alias and drop old Android and OS/2 hacks and auto-unalias
2015-10-09 21:36:59 +00:00
fc48729336
tweak some iop/conservative_fds-related things I picked up while thinking lksh
2015-10-09 19:29:50 +00:00
af35e9a6de
revert most of commitid 3ec342c92b3a8874 and fixup the rest;
...
this should bring us closer to POSIX again
2015-10-09 17:48:53 +00:00
3fc8b5eb94
partial oksh sync, up to commit 80be547da108d5c241ae068290ca3e331446aa41?
2015-10-09 16:11:19 +00:00
eb9050b8f8
stop using issetugid(2) for ±p check as it’s probably not the right tool
2015-10-05 17:59:00 +00:00
bd9de444e3
Merge remote-tracking branch 'mksh/master'
2015-09-12 12:50:57 +09:00
ed5cb56849
replace the code related to << changes and <<< with cleaner code,
...
fixing a few bugs also (including new testcases, except x=<< issue)
2015-09-06 19:47:01 +00:00
edc2acd61d
fix tree printing multiple heredocs in one command, bug found by izabera
2015-09-05 20:20:48 +00:00
4adcfe8b58
oksh sync, simplify *all* if(x)free(x); constructs, simplify x_push() and sync boilerplate while here
2015-09-05 19:19:12 +00:00
df20ee1fff
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
check.t
main.c
2015-08-15 23:45:52 +09:00
1b8b792b7e
quote path separator if ; in some cases; pointed out by komh
2015-08-13 22:06:23 +00:00
c674e71377
be more careful with signals and errorlevels; bounds-check them better;
...
don’t trust the OS as POSuX comes up with more-than-8-bit exit codes now;
also, one more int → bool
2015-08-13 21:38:19 +00:00
4c61aeebe5
Use upstream style macro/function names
...
modified: edit.c
modified: eval.c
modified: exec.c
modified: main.c
modified: misc.c
modified: sh.h
2015-07-21 16:30:47 +09:00
834349f3be
Merge remote-tracking branch 'mksh/master'
...
Conflicts:
Build.sh
check.pl
check.t
edit.c
emacsfn.h
exec.c
funcs.c
main.c
misc.c
sh.h
var.c
2015-07-21 16:30:46 +09:00
ba8a6e9461
merge OS/2 style PATH (absolute with drive letters, ‘;’ as separator)
...
From: KO Myung-Hun <komh@chollian.net >
2015-07-10 19:36:38 +00:00
edf76ec8e6
harden the crlf vs lf tests even more; use binary mode explicitly on OS/2
2015-07-09 20:52:43 +00:00
dcd8b6389b
apply the new cat hack to printf, too, to prefer it over the builtin
2015-07-09 20:20:45 +00:00
950827394b
more easy OS/2 fixes
...
From: KO Myung-Hun <komh@chollian.net >
2015-07-09 19:46:43 +00:00
041666eefb
a few more mksh-os2 inspired fixes
2015-07-09 19:28:21 +00:00
65d8ad9dae
Merge remote-tracking branch 'mksh/master'
2015-07-08 19:31:55 +09:00
f463d9da76
• revert the cat hack for realpath and rename
...
‣ I was convinced by several that more magic is never the solution
• fix a comment: function cat already had precedence
• change cat loader to look for existence, FPATH included, before
ditching the builtin; note that in manpage
2015-07-06 17:48:37 +00:00