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

-s option does not supressing warnings #439

Closed
kassio opened this issue Mar 14, 2014 · 4 comments
Closed

-s option does not supressing warnings #439

kassio opened this issue Mar 14, 2014 · 4 comments

Comments

@kassio
Copy link

kassio commented Mar 14, 2014

$ ack test
ack: launchd-876.k0GsfA: Permission denied
ack: launchd-898.YkvjEN: Permission denied
teste
1:1:testing
2:1:teste

$ ack -s test
ack: launchd-876.k0GsfA: Permission denied
ack: launchd-898.YkvjEN: Permission denied
teste
1:1:testing
2:1:teste

$ grep test *                                                                                         2 ↵
grep: 20140312135345: Is a directory
grep: Alfred2: Is a directory
grep: atom-compile-cache: Is a directory
grep: launch-XPgUtW: Is a directory
grep: launch-xgV9Gb: Is a directory
grep: launchd-245.FQ1mEN: Is a directory
grep: launchd-876.k0GsfA: Permission denied
grep: launchd-898.YkvjEN: Permission denied
grep: mysql.sock: Operation not supported on socket
teste:testing
teste:teste
grep: tmp: Is a directory
xpto:test
xpto:testing

$ grep -s test *
teste:testing
teste:teste
xpto:test
xpto:testing
kassio added a commit to mileszs/ack.vim that referenced this issue Mar 14, 2014
Despite it's
[not working on current ack version](beyondgrep/ack2#439),
I think it's a nice default option.
@hoelzro
Copy link
Collaborator

hoelzro commented Mar 14, 2014

@kassio What OS is this on? What version of ack are you using?

@hoelzro
Copy link
Collaborator

hoelzro commented Mar 15, 2014

I've reproduced this behavior when the directory is inaccessible.

@hoelzro
Copy link
Collaborator

hoelzro commented Mar 15, 2014

Fixed!

@hoelzro hoelzro closed this as completed Mar 15, 2014
@kassio
Copy link
Author

kassio commented Mar 15, 2014

Sorry not answered you before, thank's for the fix! 😄

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