MirBSD Korn Shell for Jehanne
Go to file
tg bd795a83ae partial merge and full RCS ID sync with oksh
merged:
• new regression tests
• check.pl (tests/th) better tmpfile handling
• exec.c 1.50: POSIX specifies that for an AND/OR list,
  only the last command's exit status matters for "set -e"
• ksh.1 1.147: document the above
• eval.c 1.39: “Make $(< /nonexistent) have the same behaviour
  as $(cat /nonexistent) wrt. errors (do not unwind and do not
  treat this as fatal if set -e is used).”
  ‣ additionally make shf_open() return errno and actually show
    the error message from the system
• regression-39 test: remove the “maybe” marker
  ‣ but decide on correct POSIX behaviour

already been fixed in mksh:
• check.pl (tests/th) exit 1 if tests fail

not merged:
• main.c 1.52: run traps in unwind() before exiting;
  I’m pretty sure this is already working as-should in mksh
• eval.c 1.38: “Commands executed via `foo` or $( bar ) should
  not inherit "set -e" status.” As discussed in IRC, this is
  just plainly WRONG.
2013-07-21 18:36:03 +00:00
Build.sh use ${SIZE-size} for lewellyn’s cross 2013-07-08 10:12:45 +00:00
Makefile Replace wcwidth code by mine based on Unicode 6.2.0 2013-05-31 23:27:14 +00:00
check.pl partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
check.t partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
dot.mkshrc implement VALSUBs 2013-05-02 21:59:54 +00:00
edit.c RCSID sync with oksh (fixed by us 4 years ago already) 2013-06-03 22:27:42 +00:00
emacsfn.h • merge printf from OpenBSD 2010-07-17 22:09:40 +00:00
eval.c partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
exec.c partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
expr.c Replace wcwidth code by mine based on Unicode 6.2.0 2013-05-31 23:27:14 +00:00
funcs.c use ‘z’ shf printf modifier for out-of-memory message, now that we have it 2013-06-03 22:28:33 +00:00
histrap.c harmonise sys_{sig,err}list ⓐ checks, ⓑ uses, ⓒ _decl values when not needed, ⓓ prototypes; ⓔ “const” is a keyword and thus space-separated from the preceding ‘*’ pointer indicator 2012-12-28 02:28:39 +00:00
jobs.c fix a number of warnings and other issues: 2013-06-02 03:09:17 +00:00
lalloc.c use ‘z’ shf printf modifier for out-of-memory message, now that we have it 2013-06-03 22:28:33 +00:00
lex.c pull some quoting fixes from oksh; original patch from Alexander Polakov 2013-06-01 00:15:58 +00:00
lksh.1 remove the remark that lksh is not suitable for /bin/sh 2013-05-22 18:18:06 +00:00
main.c partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
misc.c support n̲o̲t̲ fork(2)ing for -T (by prepending the tty with ‘!’); especially useful on Linux since our own setsid(2) is more annoying; gets rid of the need for oneit_lite and similar hacks; WARNING: also removes chown/chmod on the tty! 2013-06-03 22:28:06 +00:00
mksh.1 partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
sh.h use ‘z’ shf printf modifier for out-of-memory message, now that we have it 2013-06-03 22:28:33 +00:00
sh_flags.h implement set -o pipefail 2013-05-02 20:28:15 +00:00
shf.c partial merge and full RCS ID sync with oksh 2013-07-21 18:36:03 +00:00
strlcpy.c more KNF, mostly whitespace, this time more manual labour applying style(9) 2009-06-10 18:12:51 +00:00
syn.c from oksh: “for var in; do” shouldn’t be interpreted as “for var; do” (POSIX) 2013-06-03 22:28:17 +00:00
tree.c implement VALSUBs 2013-05-02 21:59:54 +00:00
var.c prevent indirect recursion loops for namerefs; found by ormaaj, thanks! 2013-05-31 22:47:14 +00:00
var_spec.h oops, this list is s’pos’ta be sorted 2012-11-30 16:45:25 +00:00