summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-environment-no-substitute.service
blob: b5cb2a4445ab525f3539c3f748398572d5beeece (plain)
1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for No Environment Variable Substitution

[Service]
ExecStart=/bin/sh -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2}" = "word3" && test "$${VAR3-unset}" = \'$word 5 6\''
ExecStart=:/bin/sh -x -c 'test "$${VAR1-unset}" != "unset" && test "$${VAR2}" != "word3" && test "$${VAR3-unset}" != \'$word 5 6\''
Type=oneshot
Environment="VAR2=word3" "VAR3=$word 5 6"