Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $ARGS instead of ${ARGS}. #92

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Use $ARGS instead of ${ARGS}. #92

merged 1 commit into from
Nov 21, 2024

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Nov 21, 2024

See man for systemd.
In short, systemd supports environment variable substitution.
"${FOO}" - as part of a word, or as a word of its own, on the command line, it will be replaced by the value of the environment variable including all whitespace it contains, resulting in a single argument.
"$FOO" - as a separate word on the command line, it will be replaced by the value of the environment variable split at whitespace, resulting in zero or more arguments.

Fix #91

See man for systemd.
In short,  systemd supports environment variable substitution.
"${FOO}"  - as part of a word, or as a word of its own, on the command line, it will be replaced by the value of the environment variable including all whitespace it contains, resulting in a single argument.
"$FOO" -  as a separate word on the command line,  it will be replaced by the value of the environment variable split at whitespace, resulting in zero or more arguments.
@woblerr woblerr self-assigned this Nov 21, 2024
@woblerr woblerr added the bug label Nov 21, 2024
@woblerr woblerr merged commit b08516e into master Nov 21, 2024
6 checks passed
@woblerr woblerr deleted the fix_service_template branch November 21, 2024 19:39
@step21
Copy link

step21 commented Nov 21, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

example service template does interesting things
2 participants