Lines Matching defs:sh
166 * "sh", "csh", "bash". For custom shells, it is the full pathname, and its
168 * So /usr/pkg/bin/bash has type sh, /usr/local/bin/tcsh has type csh.
303 * name or the full path of a sh-compatible shell, which will be used as
328 * An sh-compatible shell with a non-standard name.
330 * Keep this in sync with the "sh" description below, but avoid
332 * sh-compatible shells.
358 "sh", /* .name */
769 /* Escape a string for a double-quoted string literal in sh, csh and ksh. */
997 if (DEBUG(SHELL) && strcmp(shellName, "sh") == 0)
2361 Shell *sh = shells;
2362 const Shell *shellsEnd = sh + sizeof shells / sizeof shells[0];
2364 for (sh = shells; sh < shellsEnd; sh++) {
2365 if (strcmp(name, sh->name) == 0)
2366 return sh;
2424 Shell *sh;
2509 if ((sh = FindShellByName(newShell.name)) == NULL) {
2515 shell = sh;
2532 if ((sh = FindShellByName(shellName)) == NULL) {
2538 shell = sh;