Home
last modified time | relevance | path

Searched refs:shellcmd (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/external/bsd/tmux/dist/
H A Dcmd-if-shell.c79 char *shellcmd; in cmd_if_shell_exec() local
86 shellcmd = format_single_from_target(item, args_string(args, 0)); in cmd_if_shell_exec()
88 if (*shellcmd != '0' && *shellcmd != '\0') in cmd_if_shell_exec()
93 free(shellcmd); in cmd_if_shell_exec()
96 free(shellcmd); in cmd_if_shell_exec()
121 if (job_run(shellcmd, 0, NULL, NULL, s, in cmd_if_shell_exec()
125 cmdq_error(item, "failed to run command: %s", shellcmd); in cmd_if_shell_exec()
126 free(shellcmd); in cmd_if_shell_exec()
130 free(shellcmd); in cmd_if_shell_exec()
/netbsd-src/usr.bin/mail/
H A Dmime_child.c135 char *shellcmd; in mime_run_command() local
136 if ((shellcmd = value(ENAME_SHELL)) == NULL) in mime_run_command()
137 shellcmd = __UNCONST(_PATH_CSHELL); in mime_run_command()
138 (void)sasprintf(&cp, "%s -c '%s'", shellcmd, cmd); in mime_run_command()
H A Dcollect.c158 const char *shellcmd; in mespipe() local
179 if ((shellcmd = value(ENAME_SHELL)) == NULL) in mespipe()
180 shellcmd = _PATH_CSHELL; in mespipe()
181 if (run_command(shellcmd, in mespipe()
625 const char *shellcmd; in collect() local
645 if ((shellcmd = value(ENAME_SHELL)) == NULL) in collect()
646 shellcmd = _PATH_CSHELL; in collect()
648 rc2 = run_command(shellcmd, NULL, nullfd, fileno(fbuf), "-c", cp + 1, NULL); in collect()
H A Dcmd3.c145 const char *shellcmd; in shell() local
154 if ((shellcmd = value(ENAME_SHELL)) == NULL) in shell()
155 shellcmd = _PATH_CSHELL; in shell()
156 (void)run_command(shellcmd, NULL, 0, 1, "-c", cmd, NULL); in shell()
172 const char *shellcmd; in dosh() local
176 if ((shellcmd = value(ENAME_SHELL)) == NULL) in dosh()
177 shellcmd = _PATH_CSHELL; in dosh()
178 (void)run_command(shellcmd, NULL, 0, 1, NULL); in dosh()
H A Dpopen.c244 char *shellcmd; in Popen() local
257 if ((shellcmd = value(ENAME_SHELL)) == NULL) in Popen()
258 shellcmd = __UNCONST(_PATH_CSHELL); in Popen()
259 pid = start_command(shellcmd, &nset, fd0, fd1, "-c", cmd, NULL); in Popen()
H A Dnames.c335 const char *shellcmd; in outof() local
345 if ((shellcmd = value(ENAME_SHELL)) == NULL) in outof()
346 shellcmd = _PATH_CSHELL; in outof()
351 pid = start_command(shellcmd, &nset, in outof()
/netbsd-src/external/bsd/less/dist/
H A Dcommand.c78 static char *shellcmd = NULL; /* For holding last shell command for "!!" */ variable
310 if (shellcmd != NULL) in exec_mca()
311 free(shellcmd); in exec_mca()
312 shellcmd = fexpand(cbuf); in exec_mca()
317 if (shellcmd == NULL) in exec_mca()
320 lsystem(shellcmd, "!done"); in exec_mca()
H A Dfilename.c548 static FILE * shellcmd(char *cmd) in shellcmd() function
744 fd = shellcmd(cmd); in lglob()
884 fd = shellcmd(cmd); in open_altfile()
977 fd = shellcmd(cmd); in close_altfile()
/netbsd-src/usr.bin/make/
H A Dparse.c2843 const char *shellcmd = NULL; in ParseDependencyLine()
2850 shellcmd = semicolon + 1; in ParseDependencyLine()
2865 if (shellcmd != NULL) in ParseDependencyLine()
2866 ParseLine_ShellCommand(shellcmd); in ParseDependencyLine()
2842 const char *shellcmd = NULL; ParseDependencyLine() local