joh / when-changed

Execute a command when a file is changed
Other
1.22k stars 107 forks source link

How to evaluate environment variables set by when-changed #97

Closed wieselkind closed 5 months ago

wieselkind commented 5 months ago

Hi,

I'm trying to look at the exported envvars mentioned in when-changed docs. However they're always undefined even when adding a call to 'env' as command to when-changed.

How may one properly access those? (from bash/zsh)

Thanks David

`Environment variables:

wieselkind commented 5 months ago

figured it out... I was using v0.3.0 from pip install... had to replace whenchanged.py with latest from GitHub and voila envvars work as expected :-)