tartley / rerun2

Rerun a given command (eg tests) on filesystem events
MIT License
98 stars 21 forks source link

Error when trying to run a command that accepts an argument #8

Closed oren closed 4 years ago

oren commented 4 years ago

First, thanks for writing this software. It's very useful.

I am getting an error when trying to use reurn 2 with a command that have an agrument.

./rerun2 "ls .
./rerun2: line 60: ls .: command not found

Also, I have a suggestion to add something to the readme: on ubuntu 16.04 inotifywait exist in inotify-tools so you should guide the user to install it first.

tartley commented 4 years ago

Thanks for the report. I'll have a think and try to push this as clarifications to the README...

tartley commented 4 years ago

The README might be out of date. I forget how it's supposed to work :-) But currently, it works for me without any quotes:

rerun2 ls .

There might be some confusion that your bash shell will do some interpretation of the command before passing it to 'rerun2', eg:

rerun2 ls $HOME

"rerun2" will only see the args ["ls", "/home/username"]

Make sense? I'll try to make this clear in the README. Thanks for reporting both things.

oren commented 4 years ago

thanks. it's working without the quotes!