HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-environment.service
Git blob: d20875840c38bb7a1cc13959ad8bc78d242d413e
Lines 1–9 of 9
# 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" = "\\$$word 5 6"'
Type=oneshot
Environment="VAR1=word1 word2" VAR2=word3 "VAR3=$word 5 6"