make “builtin” and “wait” not special
(“\builtin” likely also doesn’t need it, as “command” isn’t)
This commit is contained in:
6
funcs.c
6
funcs.c
@ -38,7 +38,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.323 2017/02/18 02:33:11 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.324 2017/03/11 23:10:40 tg Exp $");
|
||||||
|
|
||||||
#if HAVE_KILLPG
|
#if HAVE_KILLPG
|
||||||
/*
|
/*
|
||||||
@ -100,7 +100,7 @@ const struct builtin mkshbuiltins[] = {
|
|||||||
/* no =: AT&T manual wrong */
|
/* no =: AT&T manual wrong */
|
||||||
{Talias, c_alias},
|
{Talias, c_alias},
|
||||||
{"*=break", c_brkcont},
|
{"*=break", c_brkcont},
|
||||||
{Tgbuiltin, c_builtin},
|
{Tbuiltin, c_builtin},
|
||||||
{Tbcat, c_cat},
|
{Tbcat, c_cat},
|
||||||
{Tcd, c_cd},
|
{Tcd, c_cd},
|
||||||
/* dash compatibility hack */
|
/* dash compatibility hack */
|
||||||
@ -142,7 +142,7 @@ const struct builtin mkshbuiltins[] = {
|
|||||||
{"umask", c_umask},
|
{"umask", c_umask},
|
||||||
{Tunalias, c_unalias},
|
{Tunalias, c_unalias},
|
||||||
{"*=unset", c_unset},
|
{"*=unset", c_unset},
|
||||||
{"=wait", c_wait},
|
{"wait", c_wait},
|
||||||
{"whence", c_whence},
|
{"whence", c_whence},
|
||||||
#ifndef MKSH_UNEMPLOYED
|
#ifndef MKSH_UNEMPLOYED
|
||||||
{Tbg, c_fgbg},
|
{Tbg, c_fgbg},
|
||||||
|
20
mksh.1
20
mksh.1
@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.424 2017/02/27 16:08:04 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.425 2017/03/11 23:10:41 tg Exp $
|
||||||
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
|
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
|
||||||
.\"-
|
.\"-
|
||||||
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
||||||
@ -76,7 +76,7 @@
|
|||||||
.\" with -mandoc, it might implement .Mx itself, but we want to
|
.\" with -mandoc, it might implement .Mx itself, but we want to
|
||||||
.\" use our own definition. And .Dd must come *first*, always.
|
.\" use our own definition. And .Dd must come *first*, always.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: February 27 2017 $
|
.Dd $Mdocdate: March 11 2017 $
|
||||||
.\"
|
.\"
|
||||||
.\" Check which macro package we use, and do other -mdoc setup.
|
.\" Check which macro package we use, and do other -mdoc setup.
|
||||||
.\"
|
.\"
|
||||||
@ -3022,18 +3022,18 @@ Additional
|
|||||||
.Nm
|
.Nm
|
||||||
commands keeping assignments:
|
commands keeping assignments:
|
||||||
.Pp
|
.Pp
|
||||||
.Ic builtin , global , source , typeset ,
|
.Ic global , source , typeset
|
||||||
.Ic wait
|
|
||||||
.Pp
|
.Pp
|
||||||
Builtins that are not special:
|
Builtins that are not special:
|
||||||
.Pp
|
.Pp
|
||||||
.Ic [ , alias , bg , bind ,
|
.Ic [ , alias , bg , bind ,
|
||||||
.Ic cat , cd , command , echo ,
|
.Ic builtin , cat , cd , command ,
|
||||||
.Ic false , fc , fg , getopts ,
|
.Ic echo , false , fc , fg ,
|
||||||
.Ic jobs , kill , let , print ,
|
.Ic getopts , jobs , kill , let ,
|
||||||
.Ic pwd , read , realpath , rename ,
|
.Ic print , pwd , read , realpath ,
|
||||||
.Ic sleep , suspend , test , true ,
|
.Ic rename , sleep , suspend , test ,
|
||||||
.Ic ulimit , umask , unalias , whence
|
.Ic true , ulimit , umask , unalias ,
|
||||||
|
.Ic wait , whence
|
||||||
.Pp
|
.Pp
|
||||||
Once the type of command has been determined, any command-line parameter
|
Once the type of command has been determined, any command-line parameter
|
||||||
assignments are performed and exported for the duration of the command.
|
assignments are performed and exported for the duration of the command.
|
||||||
|
Reference in New Issue
Block a user