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

STDERR is not properly ignored/dealt with (e.g. permission denied) #46

Closed
tolry opened this issue Aug 16, 2012 · 2 comments
Closed

STDERR is not properly ignored/dealt with (e.g. permission denied) #46

tolry opened this issue Aug 16, 2012 · 2 comments

Comments

@tolry
Copy link

tolry commented Aug 16, 2012

Hi,

small problem when searching a directory containing non accessible files (e.g. cache files that were created by a daemon's user). Those error messages are interpreted as matches from ack-grep and displayed accordingly. Since ack-grep seems to properly send these errors to STDERR, a quick fix would be to make the system call using "2>/dev/null".

Detecting and properly showing these messages as error-messages would be even better.

thanks,
Tobias

@kassio
Copy link
Contributor

kassio commented Mar 12, 2014

@tolry Thank's for reporting, and sorry about the late. You can change it on you own configuration changing the g:ackprg variable. If you, like me, would like this for default, could you please open a pull request to add this feature?

Thank's a lot.

@kassio kassio closed this as completed Mar 12, 2014
@kassio
Copy link
Contributor

kassio commented Mar 14, 2014

One more information, ack has a option for that:

-s  Suppress error messages about nonexistent or unreadable files.  This is taken from fgrep.

However this option seems not be working on 2.12, I opened an issue about it there.

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