| /src/usr.bin/make/unit-tests/ |
| var-op-sunsh.mk | 4 # side through the shell. It is a seldom-used alternative to the != 9 # This is the idiomatic form of the Sun shell assignment operator. 28 # 'VAR:shell', using the '=' assignment operator. 29 VAR:shell= echo colon-shell macro 33 .if ${${:UVAR\:shell}} != "echo colon-shell" 65 VAR.${:U echo\:shell}= ok-shell 66 .if ${VAR.${:U echo\:shell}} != "ok-shell [all...] |
| /src/external/gpl2/gettext/dist/djgpp/ |
| getpwnam.c | 18 static char shell [] = "sh"; variable 32 rv.pw_shell = getenv("SHELL"); 36 rv.pw_shell = shell;
|
| /src/games/warp/ |
| sig.c | 82 char *shell = getenv("SHELL"); local 85 if (!*shell) 86 shell = "/bin/sh"; 87 execl(shell,shell,0);
|
| /src/usr.bin/newgrp/ |
| newgrp.c | 68 char *shell, sbuf[MAXPATHLEN + 2]; local 139 shell = getenv("SHELL"); 140 if (shell != NULL) 141 pwd->pw_shell = shell; 147 shell = pwd->pw_shell; 184 (void)setenv("SHELL", pwd->pw_shell, 1); 189 shell = sbuf; 192 (void)execl(pwd->pw_shell, shell, NULL);
|
| /src/external/bsd/atf/dist/atf-sh/ |
| atf-sh.cpp | 68 const std::string shell = atf::config::get("atf_shell"); local 73 "Atf_Shell='" + shell + "' ; " + 82 construct_argv(const std::string& shell, const int interpreter_argc, 92 argv[0] = shell.c_str(); 121 "atf-sh is a shell interpreter that extends the functionality of the " 140 const std::string shell = atf::config::get("atf_shell"); local 141 const char** argv = construct_argv(shell, m_argc, m_argv); 145 const int ret = execv(shell.c_str(), const_cast< char** >(argv)); 147 std::cerr << "Failed to execute " << shell << ": " << std::strerror(errno)
|
| /src/external/bsd/less/dist/ |
| lsystem.c | 44 * Pass the specified command to a shell to be executed. 51 char *shell; local 126 * If we have a SHELL environment variable, use 127 * <$SHELL -c "command"> instead of just <command>. 128 * If the command is empty, just invoke a shell. 132 if ((shell = lgetenv("SHELL")) != NULL && *shell != '\0') 135 p = save(shell); 141 int len = (int) (strlen(shell) + strlen(esccmd) + 5) [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/isctest/ |
| run.py | 132 def shell(script: str, args: Optional[List[str]] = None) -> None: function 133 """Run a given script with system's shell interpreter.""" 134 _run_script(os.environ["SHELL"], script, args)
|
| /src/distrib/utils/more/ |
| os.c | 74 * Pass the specified command to a shell to be executed. 83 char *shell; local 123 * If we have a SHELL environment variable, use 124 * <$SHELL -c "command"> instead of just <command>. 125 * If the command is empty, just invoke a shell. 127 if ((shell = getenv("SHELL")) != NULL && *shell != '\0') 130 cmd = shell; 134 shell, cmd) [all...] |
| /src/usr.sbin/chroot/ |
| chroot.c | 118 const char *shell; local 191 if ((shell = getenv("SHELL")) == NULL) 192 shell = _PATH_BSHELL; 193 execlp(shell, shell, "-i", NULL); 194 err(1, "%s", shell);
|
| /src/usr.bin/apply/ |
| apply.c | 202 * Private version of system(3). Use the user's SHELL environment 203 * variable as the shell to execute. 208 static const char *name, *shell; local 214 if (shell == NULL) { 215 if ((shell = getenv("SHELL")) == NULL) 216 shell = _PATH_BSHELL; 217 if ((name = strrchr(shell, '/')) == NULL) 218 name = shell; 237 (void)execl(shell, name, "-c", command, (char *)NULL) [all...] |
| /src/usr.bin/finger/ |
| finger.h | 51 char *shell; /* user's shell */ member in struct:person
|
| /src/external/apache2/llvm/dist/llvm/utils/git/ |
| pre-push.py | 77 """Lazily create a /dev/null fd for use in shell()""" 84 def shell(cmd, strip=True, cwd=None, stdin=None, die_on_failure=True, function 131 return shell(['git'] + list(cmd), **kwargs)
|
| /src/external/gpl3/gcc/dist/fixincludes/ |
| server.c | 61 * Arbitrary text that should not be found in the shell output. 65 tSCC z_done[] = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd"; 203 * Locate a shell suitable for use. For various reasons 205 * Bourne-like shell. 215 char * shell = getenv ("CONFIG_SHELL"); local 216 if (shell) 217 return shell; 226 * Run a shell command on the server. The command string 240 * "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd" 249 /* IF the shell server process is not running yet [all...] |
| /src/external/gpl3/gcc.old/dist/fixincludes/ |
| server.c | 61 * Arbitrary text that should not be found in the shell output. 65 tSCC z_done[] = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd"; 203 * Locate a shell suitable for use. For various reasons 205 * Bourne-like shell. 215 char * shell = getenv ("CONFIG_SHELL"); local 216 if (shell) 217 return shell; 226 * Run a shell command on the server. The command string 240 * "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd" 249 /* IF the shell server process is not running yet [all...] |
| /src/external/ibm-public/postfix/dist/src/util/ |
| spawn_command.c | 26 /* passed to the shell when it contains shell meta characters 27 /* or when it appears to be a shell built-in command, otherwise 28 /* the command is executed without invoking a shell. 57 /* The shell to use when executing the command specified with 58 /* CA_SPAWN_CMD_COMMAND. This shell is invoked regardless of the 117 char *shell; /* command shell */ member in struct:spawn_args 140 args->shell = 0; 189 args->shell = va_arg(ap, char *) [all...] |
| vstream_popen.c | 29 /* passed to the shell when it contains shell meta characters 30 /* or when it appears to be a shell built-in command, otherwise 31 /* the command is executed without invoking a shell. 51 /* The shell to use when executing the command specified with 52 /* CA_VSTREAM_POPEN_COMMAND. This shell is invoked regardless of the 121 char *shell; member in struct:VSTREAM_POPEN_ARGS 142 args->shell = 0; 175 args->shell = va_arg(ap, char *); 253 * Process plumbing. If possible, avoid running a shell [all...] |
| /src/crypto/external/bsd/heimdal/dist/kdc/ |
| fast.c | 135 KDCFastCookie shell; local 140 memset(&shell, 0, sizeof(shell)); 157 &shell.cookie); 164 shell.version = "H5L1"; 167 &shell, &size, ret); 168 free_EncryptedData(&shell.cookie);
|
| /src/external/bsd/nvi/dist/motif_l/ |
| m_func.c | 255 Widget shell; 266 * the title of the shell. 268 shell = __vi_screen->area; 269 while ( ! XtIsShell(shell) ) shell = XtParent(shell); 270 XtVaSetValues(shell, 254 Widget shell; local
|
| m_ruler.c | 40 #include <X11/Shell.h> 248 shell = XtParent(db); 257 XtVaSetValues( shell, 268 XtPopup( shell, XtGrabNone ); 323 /* create a top-level shell for the window manager */ 243 shell = XtParent(db); local
|
| /src/bin/ksh/ |
| main.c | 32 * shell initialization 48 "typeset", "-x", "SHELL", "PATH", "HOME", NULL, 143 /* define shell keywords */ 222 /* assign default shell variable values */ 389 if (is_restricted(argv[0]) || is_restricted(str_val(global("SHELL")))) 394 "ENV", "SHELL", 413 shell(s, true); /* doesn't return */ 457 * If user ^C's out, we don't want to kill the shell... 479 i = shell(s, false); 498 r = shell(s, false) 507 shell(s, toplevel) function [all...] |
| /src/libexec/rexecd/ |
| rexecd.c | 93 static char shell[PATH_MAX + 1] = "SHELL="; variable 95 static char *envinit[] = { homedir, shell, path, username, logname, 0 }; 343 (void)pam_setenv(pamh, "SHELL", pwd->pw_shell, 1); 359 (void)strlcat(shell, pwd->pw_shell, sizeof(shell));
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| sanitizer_linux_test.cc | 263 const char *shell = "/system/bin/sh"; local 265 const char *shell = "/bin/sh"; local 267 const char *argv[] = {shell, "-c", "echo -n 'hello'", (char *)NULL}; 268 int pid = StartSubprocess(shell, argv,
|
| /src/usr.bin/login/ |
| login.c | 164 char *shell = NULL; local 605 if ((shell = login_getcapstr(lc, "shell", NULL, NULL)) != NULL) { 606 if ((shell = strdup(shell)) == NULL) { 610 pwd->pw_shell = shell; 615 (void)setenv("SHELL", pwd->pw_shell, 1);
|
| login_pam.c | 115 char *shell = NULL; local 574 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); 575 if (*shell == '\0') 576 shell = pwd->pw_shell; 578 if ((pwd->pw_shell = strdup(shell)) == NULL) { 584 (void)setenv("SHELL", pwd->pw_shell, 1);
|
| /src/usr.bin/resize/ |
| resize.c | 119 { "sh", SHELL_BOURNE }, /* vanilla Bourne shell */ 121 { "bash", SHELL_BOURNE }, /* GNU Bourne again shell */ 124 { "ksh", SHELL_BOURNE }, /* Korn shell (from AT&T toolchest) */ 125 { "ksh-i", SHELL_BOURNE }, /* another name for Korn shell */ 126 { "ksh93", SHELL_BOURNE }, /* Korn shell */ 324 char *shell; local 360 case 'u': /* Bourne (Unix) shell */ 363 case 'c': /* C shell */ 375 /* Find out what kind of shell this user is running. 378 if ((ptr = x_getenv("SHELL")) == NULL) [all...] |