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