BusyBox shell (lash) can now be used as a standalone shell when
BB_FEATURE_STANDALONE_SHELL is defined (i.e. BusyBox can now completely replace
sash). Also fixed it so shell builtins now respect pipes and redirects.
-Erik
diff --git a/busybox.c b/busybox.c
index 85b42df..07caa34 100644
--- a/busybox.c
+++ b/busybox.c
@@ -30,7 +30,7 @@
void *__libc_stack_end;
#endif
-static const struct Applet applets[] = {
+const struct BB_applet applets[] = {
#ifdef BB_BASENAME
{"basename", basename_main, _BB_DIR_USR_BIN},
@@ -350,7 +350,7 @@
{
char *s;
char *name;
- const struct Applet *a = applets;
+ const struct BB_applet *a = applets;
for (s = name = argv[0]; *s != '\0';) {
if (*s++ == '/')
@@ -384,7 +384,7 @@
argv++;
if (been_there_done_that == 1 || argc < 1) {
- const struct Applet *a = applets;
+ const struct BB_applet *a = applets;
fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n",
BB_VER, BB_BT);