There is a existing bug $ is escaped in systemd file, preventing use of environment variables
I don't see a easy fix for fix all cases when "$" is used. Having a flag for not escaping seems problematic.
but having a flag that inserts "${ENV_OPTION_1}" as the second argument does solve most use cases that I could think of.
Example:
pleaserun --env-option 1 --name foo /usr/local/bin/foo
With the end result being:
ExecStart=/usr/local/bin/foo "$ENV_OPTION_1"
There is a existing bug $ is escaped in systemd file, preventing use of environment variables
I don't see a easy fix for fix all cases when "$" is used. Having a flag for not escaping seems problematic.
but having a flag that inserts "${ENV_OPTION_1}" as the second argument does solve most use cases that I could think of.
Example:
pleaserun --env-option 1 --name foo /usr/local/bin/fooWith the end result being:
ExecStart=/usr/local/bin/foo "$ENV_OPTION_1"