ash,hush: make "source" a synonym for . if bash compat is on
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cd10dc40e4
commit
82731b4b7a
@ -8944,7 +8944,9 @@ static const struct builtincmd builtintab[] = {
|
|||||||
{ BUILTIN_SPEC_REG "return" , returncmd },
|
{ BUILTIN_SPEC_REG "return" , returncmd },
|
||||||
{ BUILTIN_SPEC_REG "set" , setcmd },
|
{ BUILTIN_SPEC_REG "set" , setcmd },
|
||||||
{ BUILTIN_SPEC_REG "shift" , shiftcmd },
|
{ BUILTIN_SPEC_REG "shift" , shiftcmd },
|
||||||
|
#if ENABLE_ASH_BASH_COMPAT
|
||||||
{ BUILTIN_SPEC_REG "source" , dotcmd },
|
{ BUILTIN_SPEC_REG "source" , dotcmd },
|
||||||
|
#endif
|
||||||
#if ENABLE_ASH_BUILTIN_TEST
|
#if ENABLE_ASH_BUILTIN_TEST
|
||||||
{ BUILTIN_REGULAR "test" , testcmd },
|
{ BUILTIN_REGULAR "test" , testcmd },
|
||||||
#endif
|
#endif
|
||||||
|
@ -673,6 +673,9 @@ static const struct built_in_command bltins1[] = {
|
|||||||
#endif
|
#endif
|
||||||
BLTIN("set" , builtin_set , "Set/unset positional parameters"),
|
BLTIN("set" , builtin_set , "Set/unset positional parameters"),
|
||||||
BLTIN("shift" , builtin_shift , "Shift positional parameters"),
|
BLTIN("shift" , builtin_shift , "Shift positional parameters"),
|
||||||
|
#if ENABLE_HUSH_BASH_COMPAT
|
||||||
|
BLTIN("source" , builtin_source , "Run commands in a file"),
|
||||||
|
#endif
|
||||||
BLTIN("trap" , builtin_trap , "Trap signals"),
|
BLTIN("trap" , builtin_trap , "Trap signals"),
|
||||||
BLTIN("type" , builtin_type , "Show command type"),
|
BLTIN("type" , builtin_type , "Show command type"),
|
||||||
BLTIN("ulimit" , shell_builtin_ulimit , "Control resource limits"),
|
BLTIN("ulimit" , shell_builtin_ulimit , "Control resource limits"),
|
||||||
|
Loading…
Reference in New Issue
Block a user