incron
incron copied to clipboard
$@ (watched path replacement token) should be (but is not) backslash escaped like the filename is
incrontab:
/tmp/directory\ with\ spaces IN_ALL_EVENTS /usr/local/bin/incron-task $@/$#
log:
incrond: (me) CMD (/usr/local/bin/incron-task /tmp/directory with spaces/file\ with\ spaces)
Spaces in the directory, even if quoted ("$@"
), cause the arguments to be split at every unescaped space in the path.
NTS: /incrontab.h:71
Thanks for your bug report.
Yes, the current parser is very fundamental. I will attempt to tackle this in future by using a proper parser-generator.