Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command not being run in Linux #52

Closed
azer opened this issue Jun 17, 2018 · 4 comments
Closed

Command not being run in Linux #52

azer opened this issue Jun 17, 2018 · 4 comments

Comments

@azer
Copy link

azer commented Jun 17, 2018

Reflex is able to watch files for changes but it doesn't run the commands in my Linux computer. Here is the verbose output of a simple ./bin/reflex -v -g '.' echo {} command:

  λ  ./bin/reflex -v  -g '.' echo {}                                                                                                                                         
Globals set at commandline                                                                                                                                                   
| --glob (-g) '[.]' (default: '[]')
| --verbose (-v) 'true' (default: 'false')
+---------
Reflex from [commandline]
| ID: 0
| Inverted regex match: "(^|/)\\.git/"
| Inverted regex match: "(^|/)\\.hg/"
| Inverted regex match: "~$"
| Inverted regex match: "\\.swp$"
| Inverted regex match: "\\.#"
| Inverted regex match: "(^|/)#.*#$"
| Inverted regex match: "(^|/)\\.DS_Store$"
| Glob match: "."
| Substitution symbol {}
| Command: [echo <filename>]
+---------

[info] fsnotify event: "./Makefile": WRITE 
@cespare
Copy link
Owner

cespare commented Jun 17, 2018

-g '.' means you're using the glob pattern ., which only matches files named . (i.e. the current directory). Normally with -g you'd use a pattern like *.c or something. If you want to try out reflex with any kind of file then you could use, for instance, -r '.'.

@cespare
Copy link
Owner

cespare commented Jun 17, 2018

Closing since I don't think there's a problem here. Leave a comment if you disagree.

@cespare cespare closed this as completed Jun 17, 2018
@azer
Copy link
Author

azer commented Jun 17, 2018

I meant to watch for changes in the current directory though.

@cespare
Copy link
Owner

cespare commented Jun 17, 2018

Yeah, but that's not how -g works. The glob pattern has to match the file that's changing. If you want to match any regular file in the current directory you could use -g '*'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants