Commands run twice with the -d flag
saint-thomas-more opened this issue · 2 comments
saint-thomas-more commented
Built entr from source at a7f1f0c using CheckInstall on Linux
The following gives two notifications after adding a file:
while sleep 1 ; do ls -d ~ | entr -d notify-send 'test' ; done
And the following gives one as expected:
while sleep 1 ; do ls ~ | entr notify-send 'test' ; done
eradman commented
What method are you using the create the file? Try setting the environment variable EV_TRACE=1
and reply with the output.
saint-thomas-more commented
Okay, I've now realized I'm stupid and forgot to use -p
because with -d
entr restarts after each operation due to the while
loop and therefore executes the command twice in a row. Sorry ^_^"