Searched defs:shell (Results 1 - 10 of 10) sorted by relevance

/ast/src/lib/libast/string/
H A Dfmtesc.c59 int shell; local
69 shell = 0;
75 shell = 1;
177 if (singlequote || shell)
183 if (shell)
202 else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()<>[]*?", c) || c == '#' && (b == f || isspace(*(b - 1))))))
210 buf += shell + !spaced;
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c22 * This is a program to execute 'execute only' and suid/sgid shell scripts.
35 * user and group id correctly, and then exec the shell.
89 static char *shell; variable
236 shell = getenv("SHELL");
237 if(shell == 0 || !endsh(shell) || (
238 !in_dir("/bin",shell) &&
239 !in_dir("/usr/bin",shell) &&
240 !in_dir("/usr/lbin",shell) &&
241 !in_dir("/usr/local/bin",shell)))
253 endsh(register const char *shell) argument
271 in_dir(register const char *dir,register const char *shell) argument
[all...]
/ast/src/cmd/mailx/
H A Dlocal.c386 * return the current shell path
392 char* shell; local
394 if (!(shell = state.var.shell) || !*shell)
395 shell = _PATH_SHELL;
396 return shell;
H A Dcmd3.c78 * Expand the shell escape by expanding unescaped !'s into the
125 * Process a shell escape by saving signals, ignoring signals,
129 shell(char* str) function
138 run_command(state.var.shell, 0, -1, -1, "-c", cmd, NiL);
140 run_command(state.var.shell, 0, -1, -1, NiL, NiL, NiL);
H A Dmailx.h853 char* shell; member in struct:__anon136::__anon147
1057 extern int shell(char*);
/ast/src/cmd/at/
H A Datd.c115 char* shell; member in struct:__anon36
568 argv[1] = job->shell;
891 job->shell = s;
1008 sfprintf(sp, "#%c%s %c0 %s %c%s %c%lu", AT_QUEUE, job->queue->name, AT_JOB, job->shell, AT_LABEL, t, AT_TIME, job->start);
1034 neqv(sp, "SHELL", job->shell);
/ast/src/cmd/re/
H A Ded.c122 Sfio_t* shell; member in struct:__anon200::__anon201
1140 shell(void) function
1150 if (!*sfstrbase(ed.buffer.shell))
1151 error(2, "no saved shell command");
1155 error(2, "empty shell command");
1157 SWP(ed.buffer.shell, ed.buffer.line);
1158 s = sfstrbase(ed.buffer.shell);
1187 error(ERROR_SYSTEM|2, "%s: cannot execute shell command", s);
1201 error(ERROR_SYSTEM|2, "%s: cannot execute shell command", s);
1204 error(ERROR_SYSTEM|2, "%s: shell comman
[all...]
/ast/src/cmd/3d/
H A D3d.h483 char* shell; member in struct:__anon7
/ast/src/cmd/INIT/
H A Dmamake.c50 " unit by \b$SHELL\b. There are some shell constructs"
226 char* shell; /* ${SHELL} */ member in struct:__anon22
1134 * pass shell action s to ${SHELL:-/bin/sh}
1135 * the -c wrapper ensures that scripts are run in the selected shell
1145 if (!state.shell && (!(state.shell = (char*)search(state.vars, "SHELL", NiL)) || !strcmp(state.shell, sh)))
1146 state.shell = sh;
1148 append(buf, state.shell);
/ast/src/cmd/coshell/
H A Dservice.h41 Coshell_t* shell; /* controlling shell */ \
52 char remote[MISCLEN];/* remote shell path */ \
53 char shell[MISCLEN]; /* shell path */ \
67 int pid; /* shell pid */ \
101 #define FORGET (5*LOST) /* forget lost shell */
106 #define LOST (1*60) /* job/shell lost secs */
139 #define GET (1<<1) /* get existing shell */
142 #define NEW (1<<4) /* make new shell i
192 char shell[MISCLEN]; member in struct:__anon58
211 char* shell; member in struct:__anon58::__anon59
231 Coshell_t* shell; member in struct:__anon60
261 Coshell_t* shell; member in union:__anon63::__anon64
328 Coshell_t* shell; member in struct:__anon66
[all...]

Completed in 38 milliseconds