shell-csh.mk revision 1.4 1 # $NetBSD: shell-csh.mk,v 1.4 2020/10/03 15:38:13 rillig Exp $
2 #
3 # Tests for using a C shell for running the commands.
4
5 # The shell path must be an absolute path.
6 # This is only obvious in parallel mode since in compat mode,
7 # simple commands are executed via execve directly.
8 .SHELL: name="csh" path="${:!which csh!}"
9
10 # In parallel mode, the commandShell->noPrint command is filtered from
11 # the output, rather naively (in JobOutput).
12 #
13 # Until 2020-10-03, the output in parallel mode was garbled because
14 # the definition of the csh had been wrong since 1993 at least.
15 .MAKEFLAGS: -j1
16
17 all:
18 # This command is both printed and executed.
19 echo normal
20
21 # This command is only executed.
22 @echo hidden
23
24 # This command is both printed and executed.
25 +echo always
26
27 # This command is both printed and executed.
28 -echo ignore errors
29
30 # In the C shell, "unset verbose" is set as the noPrint command.
31 # Therefore it is filtered from the output, rather naively.
32 @echo 'They chatted in the sunset verbosely.'
33