You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation I was thinking of was opening a pipe to /bin/sh, sending the variable assignment statements in the order they were written then reading them back out. What do you think?
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: