MirBSD Korn Shell for Jehanne
Go to file
tg 451aef7a8a some robustness improvements for dot.mkshrc:
• do not use \return for return before we know we are mksh
  (plus fix a wrong-word mistake)
• quote the argument(s) to \: (“colon”) for SECURITY
• default $MKSH to /bin/mksh (not normally reached)
• while here: check $USER only once, not for each PS1 (speed)

this addresses and mostly closes LP#1441853 – prt.mkshrc (in
OBS home:mirabile/mksh and DEB wtf-mksh they are identical)
is already good; Android mkshrc needs only some small robustness
fixes (mostly colon-related; enh says TMPDIR is good); I tested
this with “mksh -eu” and “mksh -eul” on Debian and ecce and with
read-only “/” and nothing else mounted on ecce, and it WFM
2015-04-11 18:08:56 +00:00
Build.sh 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
check.pl • protect POSIX builtins and utilities from aliases, e.g: 2015-03-08 22:54:36 +00:00
check.t only lksh now implies unalias for a POSIX function definition (used e.g. in Debian sysvinit scripts that use a “stop” function) 2015-03-20 23:37:55 +00:00
dot.mkshrc some robustness improvements for dot.mkshrc: 2015-04-11 18:08:56 +00:00
edit.c oksh rcsid sync; we have no set -o csh-history, and the manpage changes are just wrong, so, a nop 2015-03-14 05:17:17 +00:00
emacsfn.h • merge printf from OpenBSD 2010-07-17 22:09:40 +00:00
eval.c can't set word=IFS_QUOTE if already IFS_WORD (something there) 2015-02-20 07:14:30 +00:00
exec.c only lksh now implies unalias for a POSIX function definition (used e.g. in Debian sysvinit scripts that use a “stop” function) 2015-03-20 23:37:55 +00:00
expr.c oksh sync RCSIDs only: 2014-12-15 23:26:36 +00:00
funcs.c fix “read -n-1”, which still returns once the first read() succeeds 2015-03-20 21:01:41 +00:00
histrap.c SECURITY: make “unset HISTFILE” really work 2015-03-07 20:46:31 +00:00
jobs.c KNF 2015-03-01 16:02:48 +00:00
lalloc.c stop using ptrdiff_t 2014-11-25 20:00:39 +00:00
lex.c fix comment no longer true since commit 1004DC49710562ACCB2 2015-03-20 23:37:39 +00:00
lksh.1 sync clog 2015-03-21 00:12:46 +00:00
main.c “local x=$1” is supposed to not field-split and so 2015-03-14 05:23:18 +00:00
Makefile permit building lksh with printf builtin, for testing 2015-03-20 23:37:17 +00:00
mirhash.h small gem ;) 2014-10-02 19:34:06 +00:00
misc.c oksh rcsid-only sync, plus bonus rewrite of strip_nuls 2015-03-20 21:46:41 +00:00
mksh.1 sync clog 2015-03-21 00:12:46 +00:00
mksh.ico add the desktop shortcut / icon from mksh/Win32 so it may be used by everyone for mksh/Unix too 2013-07-25 16:18:25 +00:00
rlimits.opt more clueful (automatic) getopt string generation 2013-11-17 22:21:18 +00:00
sh_flags.opt fix the “set ±p” issue for good 2014-06-09 12:28:19 +00:00
sh.h only lksh now implies unalias for a POSIX function definition (used e.g. in Debian sysvinit scripts that use a “stop” function) 2015-03-20 23:37:55 +00:00
shf.c stop (ab)using the OS symbolic constant EOF, always use -1; plus misc fixes 2015-02-06 10:09:07 +00:00
strlcpy.c some bad OSes use _FORTIFY_LEVEL and break this 2013-11-05 22:10:15 +00:00
syn.c “local x=$1” is supposed to not field-split and so 2015-03-14 05:23:18 +00:00
tree.c slightly optimised and, more importantly, much more consistent (use only 2013-09-24 20:19:45 +00:00
var_spec.h oops, this list is s’pos’ta be sorted 2012-11-30 16:45:25 +00:00
var.c SECURITY: make “unset HISTFILE” really work 2015-03-07 20:46:31 +00:00