Lines Matching defs:sh
56 char* sh;
84 sfprintf(xp, sp->shell[0] ? sp->shell : state.sh, sp->type);
85 if (!(sh = sfstruse(xp)))
89 sfprintf(vp, "%s=%s %s=%s %s='%s %s' COINIT='%s' %s /dev/fd/4 >/dev/null 2>&1 3<%s 4<&3 5>&- 6>&- 7>&- 8>&- 9>&- &", CO_ENV_HOST, sp->name, CO_ENV_TYPE, sp->type, CO_ENV_SHELL, opt_info.argv[0], state.service, (sp->flags & SETRATING) ? "rating=0;" : "", sh, state.mesg);
90 av[0] = "sh";
95 sfprintf(vp, "%s -c 'trap \"\" HUP; %s=%s %s=%s %s= COINIT='\\''%s%s'\\'' %s /dev/fd/4 >/dev/null 2>&1 3<%s 4<&3 5>&- 6>&- 7>&- 8>&- 9>&- &'", sh, CO_ENV_HOST, sp->name, CO_ENV_TYPE, sp->type, CO_ENV_SHELL, (sp->flags & SETRATING) ? "rating=0;" : "", state.profile ? state.profile : "", sh, state.mesg);
96 av[0] = sh = state.remote;
102 message((-2, "%s %s \"%s\"", sh, av[1], av[2]));
103 if (!(proc = procopen(sh, av, NiL, NiL, 0)))
106 error(ERROR_OUTPUT|2, fd, "%s: cannot exec shell", sh);