The --pager option and the ACK_PAGER option do not work when piping data through ack. In the following cases the output is not piped through less:
$echo Foo|ack Foo --pager="less -r"
$export ACK_PAGER="less -r"
$echo Foo|ack Foo
What I'd like to know is why I have to set ACK_PAGER, while man and other programs just use PAGER.
Can't ack just use PAGER if ACK_PAGER is not set?
Migrated to ack2 queue.