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

Silence "INFO: Could not find files for the given pattern(s)" message #298

Merged
merged 2 commits into from Apr 1, 2013
Merged

Silence "INFO: Could not find files for the given pattern(s)" message #298

merged 2 commits into from Apr 1, 2013

Conversation

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Apr 1, 2013

This gets rid of the "INFO: Could not find files for the given pattern(s)" message that is spewed out by the watch command on Windows.

Fixes #82.

@ghost ghost assigned bobthecow Apr 1, 2013
@ddfreyne
Copy link
Member Author

@ddfreyne ddfreyne commented Apr 1, 2013

@bobthecow Review, merge and close #82 afterwards.

Loading

@bobthecow
Copy link
Member

@bobthecow bobthecow commented Apr 1, 2013

It does the trick, but wow, that's a bit ugly :)

Is there no stderr redirection for Windows?

Loading

@bobthecow
Copy link
Member

@bobthecow bobthecow commented Apr 1, 2013

docs say:

whatever 2> nul

Loading

@ddfreyne
Copy link
Member Author

@ddfreyne ddfreyne commented Apr 1, 2013

Does that also work on Windows? What docs?

IO.popen3 could be a good alternative. I’ll look into it.

Loading

@bobthecow
Copy link
Member

@bobthecow bobthecow commented Apr 1, 2013

http://support.microsoft.com/kb/110930

That's the Windows way to do it. *nix uses /dev/null instead of nul.

Loading

@ddfreyne ddfreyne mentioned this pull request Apr 1, 2013
@ddfreyne
Copy link
Member Author

@ddfreyne ddfreyne commented Apr 1, 2013

@bobthecow Review and merge.

Loading

@ddfreyne
Copy link
Member Author

@ddfreyne ddfreyne commented Apr 1, 2013

Actually you already said OK. :)

Loading

@ddfreyne ddfreyne merged commit 440b6de into nanoc:release-3.6.x Apr 1, 2013
@ddfreyne ddfreyne deleted the bug-quiet-watch-on-windows branch Apr 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants