#include "variable.h"
#include <assert.h>
-/* Default path to search for executables. */
-static char default_path[] = ":/bin:/usr/bin";
-
/* Default shell to use. */
char default_shell[] = "/bin/sh";
{
/* Fork the child process. */
- char *parent_environ;
+ char **parent_environ;
#ifdef POSIX
(void) sigprocmask (SIG_BLOCK, &fatal_signal_set, (sigset_t *) 0);
\f
#if 0
+/* Default path to search for executables. */
+static char default_path[] = ":/bin:/usr/bin";
+
/* Search PATH for FILE.
If successful, store the full pathname in PROGRAM and return 1.
If not sucessful, return zero. */
exec_command (argv, envp)
char **argv, **envp;
{
- char *shell, *path;
-
/* Be the user, permanently. */
child_access ();
case ENOEXEC:
{
/* The file is not executable. Try it as a shell script. */
+ extern char *getenv ();
char *shell;
char **new_argv;
int argc;