summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-17 17:49:52 +0200
committerDenys Vlasenko2010-05-17 17:49:52 +0200
commit82731b4b7a5634bdee52d98b1a7686e18a861ebc (patch)
tree21e862dbfe091e0c893357d3a9904d36bd6a5044 /shell/ash.c
parentcd10dc40e4057d081caf7676a4fed31977f2d94d (diff)
downloadbusybox-82731b4b7a5634bdee52d98b1a7686e18a861ebc.zip
busybox-82731b4b7a5634bdee52d98b1a7686e18a861ebc.tar.gz
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/ash.c')
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ef5b2d4..ea813e0 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -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