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
setting env vars does not expand other env vars #117
Comments
Yes, this is not working and never was. |
I could do a PR to implement this. The implementation I was thinking of was opening a pipe to |
Ugh, that would be seriously ugly so IMO no, not this way. There is actually already an expand_envvar() function in cronie_common.c which could be used to expand the envvar when setting it. Currently it is used only for MAILTO and MAILFROM variables when invoking the mail. |
E.g., this does not work:
PATH=$HOME/.local/bin:/usr/bin
, the
PATH
gets set to the literal value$HOME/.local/bin:/usr/bin
.No idea if this is intended or not, possibly could be an enhancement if you think it would be worthwhile.
I was setting variables like this for years and only just now noticed that this does not work.
The text was updated successfully, but these errors were encountered: