core/unit: add UNIT_ESCAPE_EXEC_SYNTAX
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Apr 2023 12:45:46 +0000 (14:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2023 08:02:30 +0000 (10:02 +0200)
commit8c41640a71fd03e4a2a45a28e311bbfd08e4c49a
tree7937691f56b96933f0026edba5d1d70cea7c3211
parentf3af62905004964a5c1aab763a250fe710cb802c
core/unit: add UNIT_ESCAPE_EXEC_SYNTAX

Unfortunately we can't escape $ when ':' is used to prohibit variable expansion:
  ExecStart=:echo $$
is not the same as
  ExecStart=:echo $

This just adds the functionality and the unittests, without using it anywhere
for real yet.
src/core/unit.c
src/core/unit.h
src/test/test-core-unit.c