HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-environment-no-substitute.service
Git blob: 6748c1292ad0edfc208c68c5bd86e535b0764daa
Lines 1–10 of 10
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for No Environment Variable Substitution
[Service]
ExecStart=bash -x -c 'test "$${VAR1-unset}" = "unset" && test "$${VAR2}" = "word3" && test "$${VAR3-unset}" = \'$word 5 6\''
ExecStart=:bash -x -c 'test "$${VAR1-unset}" != "unset" && test "$${VAR2}" != "word3" && test "$${VAR3-unset}" != \'$word 5 6\''
Type=oneshot
Environment="VAR2=word3" "VAR3=$word 5 6"