[systemd-devel] Problem expanding environment variables

Thomas Köller thomas at koeller.dyndns.org
Fri Sep 6 10:40:33 UTC 2024


Am 06.09.24 um 11:04 schrieb Andrei Borzenkov:
> You need to quote $ to pass it to the shell.
> ExecStart = sh -c 'echo Res: $${VAR#abc-}'

Yes, this works. However, I didn't find this anywhere in the systemd man 
pages. What I found was escaping using a backslash, but that didn't work.




More information about the systemd-devel mailing list