beyondgrep / ack1

This repository is for ack 1.x, which is **no longer being maintained**. DO NOT SUBMIT ISSUES HERE. ack 2.0 has a new GitHub project at
https://github.com/petdance/ack2
804 stars 95 forks source link

Add a new --nofilter option #90

Closed petdance closed 10 years ago

petdance commented 14 years ago

it would be nice to be able to explicitly disable filter mode for e.g. running from emacs

Reported by techtramp, Jun 09, 2009

ack switches into filter mode if STDIN is a pipe

http://github.com/mccraigmccraig/ack/commit/de14c7f2252f67210484072cf6aee0ade2ca9c69

is a patch which adds a --nofilter option, which explicitly disables filter mode

csmith0651 commented 14 years ago

Perhaps a --nofilter is not necessary, instead specify "." as single filename:

% ack -i foobar .

This requires moving check that STDIN is a named pipe to after the processing of the command line arguments.

dmmalam commented 12 years ago

Any progress on this? I've having the same issue whilst trying to run ack from nodejs's chilld process

petdance commented 12 years ago

I don't think anyone is working on it, @dmmalam. If you'd like to add a --nofilter option, I'd be open to it.

dmmalam commented 12 years ago

Currently Ive gotten around it by using grep, which is kinda ironic I guess as I prefer ack.

The issue comes across when running ack from our build script, or any child process, so I'm surprised the issue is still open. I guess most people will be using ack interactively?

If I have time, i'll have a look at it.

Dharmesh Malam

On 23 January 2012 14:57, Andy Lester < reply@reply.github.com

wrote:

I don't think anyone is working on it, @dmmalam. If you'd like to add a --nofilter option, I'd be open to it.


Reply to this email directly or view it on GitHub: https://github.com/petdance/ack/issues/90#issuecomment-3615017

lloeki commented 12 years ago

Workaround: https://github.com/petdance/ack/issues/106#issuecomment-5065852

hoelzro commented 10 years ago

Migrated to ack2 queue.