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
4 # running the commands.
6 # This variable is read-only.
10 ORIG_SHELL:= ${.SHELL}
13 .if ${.SHELL} != ${ORIG_SHELL}
17 # Trying to append to the variable.
18 # Since 2020-10-30 this is prevented.
19 .MAKEFLAGS: .SHELL+=appended
20 .if ${.SHELL} != ${ORIG_SHELL}
24 # Trying to delete the variable.
25 # This has no effect since the variable is not defined in the global scope,
26 # but in the command-line scope.
28 .SHELL= newly overwritten
29 .if ${.SHELL} != ${ORIG_SHELL}