beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

ACK_PAGER doesn't work when piping data through ack #354

Closed hoelzro closed 9 years ago

hoelzro commented 11 years ago

https://github.com/petdance/ack/issues/113

--pager works, but ACK_PAGER does not.

bartlomiejb commented 10 years ago

It works for me: $ echo $ACK_PAGER less -R $ echo foo | ./ack-standalone foo

pipes through less -R

$ ./ack-standalone --help | grep 'is version' This is version 2.11_02 of ack.

Is this issue still valid?

h3xx commented 9 years ago

I second @bartlomiejb's comment; it works as expected for me as well.

Using ack standalone v2.14. Test performed:

$ echo Foo|ack Foo --pager="less -r"
$ export ACK_PAGER="less -r" ; echo Foo|ack Foo

Pipes ack output through less -r in both cases.

hoelzro commented 9 years ago

Thanks for weighing in @bartlomiejb and @h3xx ; I'll close this then.