diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-17 17:49:52 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-17 17:49:52 +0200 |
commit | 82731b4b7a5634bdee52d98b1a7686e18a861ebc (patch) | |
tree | 21e862dbfe091e0c893357d3a9904d36bd6a5044 /shell/hush.c | |
parent | cd10dc40e4057d081caf7676a4fed31977f2d94d (diff) | |
download | busybox-w32-82731b4b7a5634bdee52d98b1a7686e18a861ebc.tar.gz busybox-w32-82731b4b7a5634bdee52d98b1a7686e18a861ebc.tar.bz2 busybox-w32-82731b4b7a5634bdee52d98b1a7686e18a861ebc.zip |
ash,hush: make "source" a synonym for . if bash compat is on
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"), |