[PATCH] busybox ash - problem with shift built-in
Jean Wolter
jw5 at os.inf.tu-dresden.de
Wed Jun 21 06:55:18 PDT 2006
Hello,
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. The following patch fixes
this.
Index: shell/ash.c
===================================================================
--- shell/ash.c (revision 15457)
+++ shell/ash.c (working copy)
@@ -1363,8 +1363,8 @@
{ BUILTIN_SPEC_REG_ASSG "readonly", exportcmd },
{ BUILTIN_SPEC_REG "return", returncmd },
{ BUILTIN_SPEC_REG "set", setcmd },
+ { BUILTIN_SPEC_REG "shift", shiftcmd },
{ BUILTIN_SPEC_REG "source", dotcmd },
- { BUILTIN_SPEC_REG "shift", shiftcmd },
#ifdef CONFIG_ASH_BUILTIN_TEST
{ BUILTIN_REGULAR "test", testcmd },
#endif
regards,
Jean
More information about the busybox
mailing list