aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/varmod-sun-shell.mk
blob: 712b36bc70303e87215313152604b6430dc40e76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $NetBSD: varmod-sun-shell.mk,v 1.1 2021/02/14 20:16:17 rillig Exp $
#
# Tests for the :sh variable modifier, which runs the shell command
# given by the variable value and returns its output.
#
# This modifier has been added on 1996-05-29.
#
# See also:
#	ApplyModifier_SunShell

.if ${echo word:L:sh} != "word"
.  error
.endif

# If the command exits with non-zero, an error message is printed.
# XXX: Processing continues as usual though.
.if ${echo word; false:L:sh} != "word"
.  error
.endif

all: