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
This commit is contained in:
tg
2015-10-09 21:36:59 +00:00
parent 52b0370973
commit cef386fb60
8 changed files with 34 additions and 218 deletions

14
lksh.1
View File

@@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/lksh.1,v 1.14 2015/10/09 20:33:49 tg Exp $
.\" $MirOS: src/bin/mksh/lksh.1,v 1.15 2015/10/09 21:36:56 tg Exp $
.\"-
.\" Copyright (c) 2008, 2009, 2010, 2012, 2013, 2015
.\" mirabilos <m@mirbsd.org>
@@ -289,18 +289,6 @@ mode and
.Nm lksh
do not keep file descriptors \*(Gt 2 private from sub-processes.
.It
.\"XXX TODO: move to FSH? fix upstreams? both ugh.
.Nm lksh
undefines an alias when a
.Tn POSIX
function with the same name is defined,
to make that function immediately callable.
In
.Nm mksh ,
aliases have precedence; the name must be quoted or
.Ic unalias Ns ed
to access it.
.It
Functions defined with the
.Ic function
reserved word share the shell options