/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-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"
|
sh.mk | 3 # Tests for running shell commands from the targets, or from the != variable 7 # var-op-shell.mk for the assignment operator '!='
|
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:
|
deptgt-shell.mk | 1 # $NetBSD: deptgt-shell.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ 3 # Tests for the special target .SHELL in dependency declarations.
|
sh-single-line.mk | 3 # Tests for running single-line shell commands. 5 # In jobs mode, the shell commands are combined into a single shell 6 # program, as described in the manual page, section "Shell Commands",
|
sh-multi-line.mk | 3 # Tests for multi-line shell commands, to ensure that the line breaks
|
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.
|
var-op-shell.mk | 1 # $NetBSD: var-op-shell.mk,v 1.11 2025/01/11 21:21:33 rillig Exp $ 4 # side through the shell. 6 # The variable OUTPUT gets the output from running the shell command. 12 # Since 2014-08-20, the output of the shell command may be empty. 15 # an empty output produced the error message "Couldn't read shell's output 19 # It may be possible to trigger the error message by killing the shell after 26 # The output of a shell command that failed is processed nevertheless. 74 # The output from the shell's stderr is not captured, it just passes through. 80 # The 8 dollar signs end up as 4 dollar signs when expanded. The shell sees 89 # As a debugging aid, log the exact command that is run via the shell [all...] |
varmod-quote.mk | 4 # to be used in a shell program. 6 # Any characters that might be interpreted by the shell are escaped. 7 # The set of escaped characters is the same, no matter which shell (sh, csh,
|
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
|
jobs-empty-commands-error.mk | 3 # In jobs mode, the shell commands for creating a target are written to a 4 # temporary file first, which is then run by the shell. In chains of
|
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.
|
posix-execution.mk | 10 # The second command thus does not see the shell variable from the first 31 # Deviation from POSIX: The shell "-e" option is not in effect. 32 # expect: shell-e-option: before 33 # expect: shell-e-option: after 34 all: shell-e-option 35 shell-e-option:
|
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.
|
/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 in function:main 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 in function:shell_system 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 in function:lsystem 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 in function:mytstp 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 in function:main 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);
|