when-changed
when-changed copied to clipboard
Set event variable on start and ad support for a kill flag
The env variable event was previously unset in the case of the first run. This isn't impossible to handle in scripts using $event but it is more convenient to provide a consistent value.