0.47pre
+ * chroot can now call the builtin shell - Pavel Roskin <proski@gnu.org>
* added 'renice' command -- thanks to Dave Cinege <dcinege@psychosis.com>
* 'make install' now creates relative symlinks, and added a new
'make install-hardlinks' target to (tada) install hardlinks.
prog = *argv;
execvp(*argv, argv);
} else {
+#ifndef BB_SH
prog = getenv("SHELL");
if (!prog)
prog = "/bin/sh";
execlp(prog, prog, NULL);
+#else
+ shell_main(argc, argv);
+ exit (0);
+#endif
}
fatalError("cannot execute %s: %s\n", prog, strerror(errno));
prog = *argv;
execvp(*argv, argv);
} else {
+#ifndef BB_SH
prog = getenv("SHELL");
if (!prog)
prog = "/bin/sh";
execlp(prog, prog, NULL);
+#else
+ shell_main(argc, argv);
+ exit (0);
+#endif
}
fatalError("cannot execute %s: %s\n", prog, strerror(errno));