Commit Graph

739 Commits

Author SHA1 Message Date
KO Myung-Hun
0d730e1ad9 Merge remote-tracking branch 'mksh/master' 2016-06-29 08:17:29 +09:00
tg
b5127b03be deprecate *not* using MKSH_CONSERVATIVE_FDS; named fds coming soon
partially reverts commitid 10048752E6271CABA24 (the manpage, mostly)
and adds a deprecation warning at build time; suggested by izabera
2016-06-25 23:49:13 +00:00
KO Myung-Hun
68f6e899ef Merge tag 'mksh-R52c' 2016-03-05 14:59:34 +09:00
tg
4ccfd5fab5 document upcoming set +o changes; bump 2016-03-04 18:28:42 +00:00
KO Myung-Hun
36ea6b5f88 Merge remote-tracking branch 'mksh/master' 2016-01-24 16:43:45 +09:00
KO Myung-Hun
6eb125c18a Merge commit '91ae6ad199035b1cf' 2016-01-24 16:36:38 +09:00
tg
188691d285 save 200 bytes off .text by revisiting string pooling
also, forgotten version bump
2016-01-21 18:24:45 +00:00
tg
7771c3b7d2 glibc now causes warnings with set[ug]id also on kFreeBSD and Hurd 2016-01-02 20:11:31 +00:00
tg
fd5360903d don’t use unset in portable code either, thanks autoconf texinfo manual 2015-12-31 21:16:20 +00:00
KO Myung-Hun
0c41f2fdc8 Merge remote-tracking branch 'mksh/master' 2015-12-13 17:59:43 +09:00
tg
b2b0c0bbb6 update for recent changes 2015-12-12 22:25:15 +00:00
tg
61726fd124 while fgrep’s easier on the eyes, grep -F’s more well-known 2015-12-08 20:59:33 +00:00
KO Myung-Hun
780f220e23 Merge remote-tracking branch 'mksh/master'
Conflicts:
    check.t
    exec.c
    sh.h
2015-10-11 19:42:38 +09:00
tg
eb9050b8f8 stop using issetugid(2) for ±p check as it’s probably not the right tool 2015-10-05 17:59:00 +00:00
KO Myung-Hun
bd9de444e3 Merge remote-tracking branch 'mksh/master' 2015-09-12 12:50:57 +09:00
tg
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
KO Myung-Hun
a83f87baf0 build: add -DMKSH_NO_LIMITS flag
Upstream fixed the KLIBC conflicts. Due to this, MKSH_NO_LIMITS is not
defined on OS/2.

    modified:   Build.sh
2015-07-21 16:30:48 +09:00
KO Myung-Hun
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
tg
abfde383fe git@github.com:komh/pdksh-os2 commit 590f2b19b0ff92a9a373295bce914654f9f5bf22
says to use <termio.h> not <termios.h> on OS/2

From: Ilya Zakharevich <ilya@math.ohio-state.edu>
2015-07-10 17:16:23 +00:00
tg
edf76ec8e6 harden the crlf vs lf tests even more; use binary mode explicitly on OS/2 2015-07-09 20:52:43 +00:00
tg
f274f18223 SECURITY: quote the arguments to true 2015-07-09 20:11:45 +00:00
tg
d034be7a84 more mksh-os2 inspired hackery 2015-07-09 19:59:14 +00:00
tg
950827394b more easy OS/2 fixes
From: KO Myung-Hun <komh@chollian.net>
2015-07-09 19:46:43 +00:00
tg
041666eefb a few more mksh-os2 inspired fixes 2015-07-09 19:28:21 +00:00
tg
3d8ba005e1 add a few generic fixes from mksh-os2
From: KO Myung-Hun <komh@chollian.net>
2015-07-09 19:19:10 +00:00
tg
e88316739e merge from git@github.com:komh/mksh-os2
Use gcc on OS/2

From: KO Myung-Hun <komh@chollian.net>
2015-07-09 19:04:28 +00:00
KO Myung-Hun
65d8ad9dae Merge remote-tracking branch 'mksh/master' 2015-07-08 19:31:55 +09:00
tg
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
tg
b9a8fdf905 implement cat thing for realpath and rename too: if flag, call external 2015-07-05 15:45:18 +00:00
KO Myung-Hun
c8bdf4d149 Define MKSH_NOPROSPECTOFWORK on OS/2
Strangely, sometimes mksh is blocked when it is running in a background
console, that is, a window not having a focus.
2015-06-03 13:00:48 +09:00
KO Myung-Hun
a1a8bd3f42 Define MKSH_UNEMPLOYED on OS/2 2015-06-03 13:00:46 +09:00
KO Myung-Hun
5127457319 Read in text mode, write in binary mode on OS/2
This enables to convert CR+LF to LF when reading, but disables to
convert LF to CR+LF when writing.

Instead, however, CR+LF are not passed into mksh as is.
2015-06-03 13:00:41 +09:00
KO Myung-Hun
5ed2481df2 Try to append executable suffixes if not having extension on OS/2 2015-06-03 13:00:40 +09:00
KO Myung-Hun
c29f892437 Ignore size on OS/2
Size does not support OS/2 OMF executables.

-----
size mksh.exe
size: mksh.exe: File format not recognized
-----
2015-06-03 13:00:39 +09:00
KO Myung-Hun
fb22b94007 Executables have .exe extension on OS/2 2015-06-03 13:00:39 +09:00
KO Myung-Hun
a4139c6666 Use gcc on OS/2 2015-06-03 13:00:38 +09:00
tg
a9e1101145 sync with actual z/OS <signal.h> contents 2015-05-01 16:08:26 +00:00
tg
93ccb42114 overhaul the signal handling:
• support NSIG_MAX from http://austingroupbugs.net/view.php?id=741
  and make a TODO for later to use sysconf(_SC_NSIG) at runtime
• bounds-check signals (e.g. no smaller than 1, but smaller than NSIG)
• align trap errorlevel with other shells
• make trap match what’s in POSIX and fixup the manpage
• refactor some code related to signals
• hide from kill builtin both EXIT and ERR pseudo-signals
2015-04-29 20:44:37 +00:00
tg
4e313e705d improve install notes, mention lksh, as requested by Ypnose via IRC 2015-04-29 20:39:00 +00:00
tg
55c3fb35d8 more OS/390 issues 2015-04-29 20:13:47 +00:00
tg
2cb0ea982a EBCDIC helpers and OS/390 signals 2015-04-29 18:38:54 +00:00
tg
65f9b93926 ordinarily, lineno must be mksh_uari_t, but edit.c most of all isn’t ready,
so we mitigate a bit (in var.c mostly) and tweak another type already, and
add some checks (mksh_{,u}ari_t must fit into {,unsigned }long) and print
line numbers with %lu already
2015-04-19 18:50:38 +00:00
tg
cad9bc86d3 Implement the “FKSH functions have local scope for shell options” feature
for mksh but not lksh; bump to R51-alpha.

While here, tweak build scripts a bit, fixup MirBSD-specific Makefile
things, remove part of a comment that’s uninteresting.
2015-04-11 23:28:21 +00:00
tg
b5d3b38cb1 port this to GNU bash 1.12.1 from http://www.qemu-advent-calendar.org/#day-1 2014-12-08 12:20:40 +00:00
tg
2f52b993a1 • Build.sh: fix NSIG detection for gcc-snapshot
• all: bump version to R50-current; add more comments; whitespace
• all: remove all mkssert(); we’ll do full re-runs of scan-build and,
  hopefully, Coverity Scan/Prevent
• check.t: fix a testcase (sed could exit false, but we don’t care)
• eval.c: fix tilde_ok data type (only unsigned may shl constantly)
• exec.c: fix shebang buf array accesses to always go via uint8_t *
2014-11-25 21:13:31 +00:00
tg
d25612b4b0 stop using ptrdiff_t 2014-11-25 20:00:39 +00:00
tg
0cf0658a0d fix severe regression in field splitting (LP#1378208) 2014-10-07 15:22:17 +00:00
tg
968dc7a764 overhaul IFS handling, fix bugs reported by Stephane Chazelas and mikeserv
now we’re at: 486 passed testsuite items, 0 failed
ifs.sh still: # tests 6856 passed 6856 failed 0
2014-10-03 17:32:12 +00:00
tg
e239a8358a use issetugid(2) as additional aid in determining if we are FPRIVILEGED 2014-10-03 17:19:27 +00:00
tg
8f172270f9 fix link; found by zacts 2014-09-29 18:57:00 +00:00