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:
Denys Vlasenko
2010-05-17 17:49:52 +02:00
parent cd10dc40e4
commit 82731b4b7a
2 changed files with 5 additions and 0 deletions

View File

@ -8944,7 +8944,9 @@ static const struct builtincmd builtintab[] = {
{ BUILTIN_SPEC_REG "return" , returncmd },
{ BUILTIN_SPEC_REG "set" , setcmd },
{ BUILTIN_SPEC_REG "shift" , shiftcmd },
#if ENABLE_ASH_BASH_COMPAT
{ BUILTIN_SPEC_REG "source" , dotcmd },
#endif
#if ENABLE_ASH_BUILTIN_TEST
{ BUILTIN_REGULAR "test" , testcmd },
#endif