incron icon indicating copy to clipboard operation
incron copied to clipboard

$@ (watched path replacement token) should be (but is not) backslash escaped like the filename is

Open ghost opened this issue 9 years ago • 1 comments

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

ghost avatar Apr 06 '15 02:04 ghost

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.

ar- avatar Apr 07 '15 01:04 ar-