/illumos-gate/usr/src/cmd/su/ |
H A D | su.c | 145 char shell[] = "/usr/bin/sh"; /* default shell */ variable 146 char safe_shell[] = "/sbin/sh"; /* "fallback" shell */ 454 * If new user's shell field is neither NULL nor equal to /usr/bin/sh, 457 * pshell = their shell 458 * su = [-]last component of shell's pathname 460 * Otherwise, set the shell to /usr/bin/sh and set argv[0] to '[-]su'. 462 if (shprog[0] != '\0' && strcmp(shell, shprog) != 0) { 473 pshell = shell; 647 * if additional arguments, exec shell progra [all...] |
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | main.c | 68 char *editor, *home, *shell; /* environment variables */ variable 169 shell = mygetenv("SHELL", SHELL);
|
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 371 char *shell; /* Shell after login (may be null) */ member in struct:display 457 new->shell = "/sbin/sh"; 459 new->shell = strdup(pwent->pw_shell); 837 * (initial working directory, shell, and password-aging) info 878 current->iwd, current->shell, 907 * (initial working directory, shell, and password-aging) info if 952 current->shell); 987 * directory, shell process, etc.). If <expflag> is not 1049 * directory, shell process, etc.). If <expflag> is not 1439 * Display extended info (init working dir, shell, pw [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 71 #define BADSHELL "because your login shell isn't /usr/bin/sh,"\ 300 atabort("ambiguous shell request"); 550 * Escape a string to be used inside the job shell script. 574 char *shell; local 604 * Determine what shell we should use to run the job. If the user 605 * didn't explicitly request that his/her current shell be over- 606 * ridden (shflag or cshflag), then we use the current shell. 609 Shell = shell = "/bin/csh"; 611 Shell = shell = "/bin/ksh"; 614 Shell = shell [all...] |
H A D | cron.c | 121 #define BADSHELL "because your login shell \ 128 #define CANTEXECSH "unable to exec the shell, %s, for one of your \ 199 struct shared *shell; /* shell for this event */ member in struct:event::__anon342::__anon343 268 /* user's default environment for the shell */ 925 * users with a login shell of /usr/bin/sh to use cron 1037 * users with a login shell of /usr/bin/sh to use cron 1136 struct shared *shell = NULL; local 1203 if (shell == NULL || 1204 strcmp(&line[cursor], get_obj(shell))) { [all...] |
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 139 static short rmode = 0; /* deny shell escape in restricted mode */ 159 static char *shell; variable 773 case '!': /* shell escape */ 796 (void) execl(shell, shell, "-c", cmdptr, 0); 1646 if ((shell = getenv("SHELL")) == (char *)NULL) 1647 shell = "/usr/bin/sh";
|
/illumos-gate/usr/src/cmd/more/ |
H A D | more.c | 184 char *shell; /* The name of the shell to use */ variable 185 int shellp; /* A previous shell command exists */ 700 * when run from another program or a shell script, it is 1308 execute (filename, shell, shell, "-c", shell_line, 0); 1550 if ((shell = getenv("SHELL")) == NULL) 1551 shell = "/usr/bin/sh";
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | cu.c | 67 * ~![cmd] execute shell (or 'cmd') locally, 248 static char *P_Ct_EXSH = "Can't execute shell\r\n"; 656 * ~! local login-style shell 825 _shell(cmd); /* local shell */ 834 _shell(cmd); /*Local shell */ 849 _shell(cmd); /* Local shell */ 878 * The routine "shell" takes an argument starting with 880 * If $arg, arg is the name of a local shell file which 882 * If !arg, we escape to a local shell to execute arg 884 * a local shell an 912 char *shell; local [all...] |
/illumos-gate/usr/src/cmd/login/ |
H A D | login.c | 225 static char shell[256] = { "SHELL=" }; variable 644 * Now fire off the shell of choice 2012 "You must exec \"login\" from the lowest level \"shell\"."; 2117 * If the shell field starts with a '*', do a chroot to the home 2231 * init.c. Additionally, a login C shell doesn't source the 2271 * If possible, use the primary default shell, 2279 envinit[basicenv++] = shell; 2280 ENVSTRNCAT(shell, pwd->pw_shell); 2468 * exec_the_shell - invoke the specified shell or start up program 2481 * Exec the shell [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 210 if (*cp == '!') { /* Special case shell escape */ 223 * For the shell escape, put the rest of the line, less 1529 shell(argc, argv) function 1547 * Fire up the shell in the child. 1566 (void) wait((int *)0); /* Wait for the shell to complete */ 3409 { "!", shellhelp, shell, 0 },
|