Searched refs:shellp (Results 1 – 2 of 2) sorted by relevance
1532 char *shellp, *shellname; in shell() local1534 shellp = getenv("SHELL"); in shell()1535 if (shellp == NULL) in shell()1536 shellp = "/bin/sh"; in shell()1537 if ((shellname = strrchr(shellp, '/')) == 0) in shell()1538 shellname = shellp; in shell()1542 (void) execl(shellp, shellname, "-c", argv[1], 0); in shell()1544 (void) execl(shellp, shellname, 0); in shell()
185 int shellp; /* A previous shell command exists */ variable1307 shellp = 1; in do_shell()1718 if (!shellp) in expand()