| /src/usr.bin/make/unit-tests/ |
| comment.exp | 1 echo This is a shell comment: # comment 2 This is a shell comment: 3 echo This is not a shell comment: '# comment' 4 This is not a shell comment: # comment 5 A shell comment can#not start in the middle of a word.
|
| shell-custom.mk | 1 # $NetBSD: shell-custom.mk,v 1.1 2020/10/03 14:39:36 rillig Exp $ 3 # Tests for using a custom shell for running the commands. 5 .SHELL: name="sh" path="echo" 6 # TODO: demonstrate the other shell features as well:
|
| shell-sh.mk | 1 # $NetBSD: shell-sh.mk,v 1.2 2023/12/24 16:48:30 sjg Exp $ 3 # Tests for using a bourne shell for running the commands. 4 # This is the default shell, so there's nothing surprising. 6 .SHELL: name="sh"
|
| varname-dot-shell.exp | 1 Parsing varname-dot-shell.mk:10: ORIG_SHELL:= ${.SHELL} 3 Var_Parse: ${.SHELL} (eval-keep-dollar-and-undefined) 4 Global: ignoring delete '.SHELL' as it is not found 5 Command: .SHELL = (details omitted) 7 Parsing varname-dot-shell.mk:12: .SHELL= overwritten 8 Global: ignoring '.SHELL = overwritten' due to a command line variable of the same name 9 Parsing varname-dot-shell.mk:13: .if ${.SHELL} != ${ORIG_SHELL [all...] |
| shell-ksh.mk | 1 # $NetBSD: shell-ksh.mk,v 1.2 2025/06/05 21:56:54 rillig Exp $ 3 # Tests for using a Korn shell for running the commands. 7 # The shell path must be an absolute path. 11 .SHELL: name="ksh" path="${KSH}" 14 # In parallel mode, the shell->noPrint command is filtered from 32 # In the Korn shell, "set +v" is set as the noPrint command.
|
| varmod-shell.exp | 1 make: varmod-shell.mk:25: warning: Command "echo word; (exit 13)" exited with status 13 2 make: varmod-shell.mk:29: warning: Command "echo word; (exit 13)" exited with status 13 8 make: varmod-shell.mk:36: warning: Command "echo word; (exit 13)" exited with status 13
|
| var-op-shell.exp | 1 make: var-op-shell.mk:32: warning: Command "echo "failed"; (exit 13)" exited with status 13 2 make: var-op-shell.mk:39: warning: Command "exit 13" exited with status 13 3 make: var-op-shell.mk:62: warning: "kill $$" exited on a signal 5 make: var-op-shell.mk:69: warning: Command "/bin/no/such/command" exited with status 127
|
| comment.mk | 18 # Since parse.c 1.127 from 2007-01-01, these are not shell commands, 20 # triggered the error message "Unassociated shell command". 33 # shell), it can start anywhere. 75 # comment. The '#' is just passed to the shell, like any ordinary character. 76 echo This is a shell comment: # comment 77 # If the '#' were to start a makefile comment, the following shell command 79 echo This is not a shell comment: '# comment' 80 @echo A shell comment can#not start in the middle of a word.
|
| shell-csh.mk | 1 # $NetBSD: shell-csh.mk,v 1.10 2025/06/05 21:56:54 rillig Exp $ 3 # Tests for using a C shell for running the commands. 7 # The shell path must be an absolute path. 11 .SHELL: name="csh" path="${CSH}" 14 # In parallel mode, the shell->noPrint command is filtered from 35 # In the C shell, "unset verbose" is set as the noPrint command.
|
| cmdline-redirect-stdin.mk | 21 # If this branch is ever reached, the shell from the assignment to line1 24 # read a single line from standard input". This is the reason why the shell 27 . error The shell's read command does not read a single line.
|
| export.mk | 21 # as a shell command and assign its output 33 # shell filters it out. To reach consistent output for each shell, the
|
| sh-errctl.mk | 3 # Test a shell with error control. This only works in jobs mode; in compat 4 # mode, the default shell is always used, see InitShellNameAndPath. 8 # control, only the last command from each line is checked. A shell command 14 .SHELL: \ 16 path="${.SHELL}" \
|
| posix-execution.exp | 7 shell-e-option: before 8 shell-e-option: after
|
| varmod-assign-shell.exp | 1 make: varmod-assign-shell.mk:21: warning: Command "echo output; (exit 13)" exited with status 13 7 make: varmod-assign-shell.mk:26: warning: Command "echo output; (exit 13)" exited with status 13
|
| varmod-sun-shell.exp | 1 make: varmod-sun-shell.mk:17: warning: Command "echo word; (exit 13)" exited with status 13 8 make: varmod-sun-shell.mk:24: warning: Command "echo word; (exit 13)" exited with status 13
|
| varmod-sun-shell.mk | 1 # $NetBSD: varmod-sun-shell.mk,v 1.6 2024/08/29 20:20:37 rillig Exp $ 3 # Tests for the :sh variable modifier, which runs the shell command
|
| varname-dot-shell.mk | 1 # $NetBSD: varname-dot-shell.mk,v 1.7 2021/02/04 21:42:47 rillig Exp $ 3 # Tests for the special .SHELL variable, which contains the shell used for 10 ORIG_SHELL:= ${.SHELL} 12 .SHELL= overwritten 13 .if ${.SHELL} != ${ORIG_SHELL} 19 .MAKEFLAGS: .SHELL+=appended 20 .if ${.SHELL} != ${ORIG_SHELL} 27 .undef .SHELL 28 .SHELL= newly overwritte [all...] |
| /src/bin/ksh/ |
| mkman | 12 echo "usage: $0 [-v] which-shell ksh.Man-file" 1>&2 15 shell=$1 18 case $shell in 22 echo "$0: bad shell option (must be sh or ksh)" 1>&2
|
| /src/bin/sh/ |
| mkbuiltins | 42 shell=$1 47 if grep '^#define JOBS[ ]*1' ${shell} > /dev/null 58 #include "shell.h"
|
| /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/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/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);
|