summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMike Frysinger2006-06-21 18:04:49 +0000
committerMike Frysinger2006-06-21 18:04:49 +0000
commitc2ad4f5d2768d7bf60457b09b624c65848ad0dd6 (patch)
treef48bf08f4a755ae03406748c68cd4e302daa8bde /shell
parent0cc2c2c2894a840b0bca24da42f4154f33b5af0a (diff)
downloadbusybox-c2ad4f5d2768d7bf60457b09b624c65848ad0dd6.zip
busybox-c2ad4f5d2768d7bf60457b09b624c65848ad0dd6.tar.gz
Jean Wolter writes: ash uses bsearch to search in the list of built-in commands, therefore the list of built-in commands has to be ordered. Revision 15077 introduced the source built-in and destroyed this order. And now ash doesn't find the shift command anymore.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index a0eb4e3..1c5742b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1363,8 +1363,8 @@ static const struct builtincmd builtincmd[] = {
{ BUILTIN_SPEC_REG_ASSG "readonly", exportcmd },
{ BUILTIN_SPEC_REG "return", returncmd },
{ BUILTIN_SPEC_REG "set", setcmd },
- { BUILTIN_SPEC_REG "source", dotcmd },
{ BUILTIN_SPEC_REG "shift", shiftcmd },
+ { BUILTIN_SPEC_REG "source", dotcmd },
#ifdef CONFIG_ASH_BUILTIN_TEST
{ BUILTIN_REGULAR "test", testcmd },
#endif