diff options
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index ef5b2d4c1..ea813e02f 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8944,7 +8944,9 @@ static const struct builtincmd builtintab[] = { | |||
8944 | { BUILTIN_SPEC_REG "return" , returncmd }, | 8944 | { BUILTIN_SPEC_REG "return" , returncmd }, |
8945 | { BUILTIN_SPEC_REG "set" , setcmd }, | 8945 | { BUILTIN_SPEC_REG "set" , setcmd }, |
8946 | { BUILTIN_SPEC_REG "shift" , shiftcmd }, | 8946 | { BUILTIN_SPEC_REG "shift" , shiftcmd }, |
8947 | #if ENABLE_ASH_BASH_COMPAT | ||
8947 | { BUILTIN_SPEC_REG "source" , dotcmd }, | 8948 | { BUILTIN_SPEC_REG "source" , dotcmd }, |
8949 | #endif | ||
8948 | #if ENABLE_ASH_BUILTIN_TEST | 8950 | #if ENABLE_ASH_BUILTIN_TEST |
8949 | { BUILTIN_REGULAR "test" , testcmd }, | 8951 | { BUILTIN_REGULAR "test" , testcmd }, |
8950 | #endif | 8952 | #endif |
diff --git a/shell/hush.c b/shell/hush.c index 1bc0c611d..a88fa055b 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -673,6 +673,9 @@ static const struct built_in_command bltins1[] = { | |||
673 | #endif | 673 | #endif |
674 | BLTIN("set" , builtin_set , "Set/unset positional parameters"), | 674 | BLTIN("set" , builtin_set , "Set/unset positional parameters"), |
675 | BLTIN("shift" , builtin_shift , "Shift positional parameters"), | 675 | BLTIN("shift" , builtin_shift , "Shift positional parameters"), |
676 | #if ENABLE_HUSH_BASH_COMPAT | ||
677 | BLTIN("source" , builtin_source , "Run commands in a file"), | ||
678 | #endif | ||
676 | BLTIN("trap" , builtin_trap , "Trap signals"), | 679 | BLTIN("trap" , builtin_trap , "Trap signals"), |
677 | BLTIN("type" , builtin_type , "Show command type"), | 680 | BLTIN("type" , builtin_type , "Show command type"), |
678 | BLTIN("ulimit" , shell_builtin_ulimit , "Control resource limits"), | 681 | BLTIN("ulimit" , shell_builtin_ulimit , "Control resource limits"), |