Home
last modified time | relevance | path

Searched refs:shellp (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/usr.bin/ftp/
H A Dcmds.c965 char shellnam[PATH_MAX], *shellp, *namep; in shell() local
974 shellp = getenv("SHELL"); in shell()
975 if (shellp == NULL || *shellp == '\0') in shell()
976 shellp = _PATH_BSHELL; in shell()
977 namep = strrchr(shellp, '/'); in shell()
979 namep = shellp; in shell()
985 fputs(shellp, ttyout); in shell()
990 execl(shellp, shellnam, "-c", altarg, (char *)NULL); in shell()
993 execl(shellp, shellnam, (char *)NULL); in shell()
995 warn("%s", shellp); in shell()
/openbsd-src/usr.bin/mg/
H A Dregion.c478 char *shellp; in shellcmdoutput() local
503 if ((shellp = getenv("SHELL")) == NULL) in shellcmdoutput()
504 shellp = _PATH_BSHELL; in shellcmdoutput()
506 if ((argv[0] = strrchr(shellp, '/')) != NULL) in shellcmdoutput()
509 argv[0] = shellp; in shellcmdoutput()
511 ret = pipeio(shellp, argv, text, len, bp); in shellcmdoutput()