From: Mike Frysinger Date: Wed, 21 Jun 2006 18:04:49 +0000 (-0000) Subject: Jean Wolter writes: ash uses bsearch to search in the list of built-in commands,... X-Git-Tag: 1_2_0~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2ad4f5d2768d7bf60457b09b624c65848ad0dd6;p=oweals%2Fbusybox.git 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. --- diff --git a/shell/ash.c b/shell/ash.c index a0eb4e36f..1c5742bdc 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