HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-environment-multiple.service
Git blob: c6565f492beb4c197e9114d707c1fe05dc1c4eba
Lines 1–10 of 10
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for Environment
[Service]
ExecStart=bash -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = foobar'
Type=oneshot
Environment="VAR1=word1 word2" VAR2=word3 "VAR3=$word 5 6"
Environment="VAR3=foobar"