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.
This commit is contained in:
parent
0cc2c2c289
commit
c2ad4f5d27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user