From c2ad4f5d2768d7bf60457b09b624c65848ad0dd6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 21 Jun 2006 18:04:49 +0000 Subject: 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. --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/ash.c') 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 -- cgit v1.2.3