Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#700428: ack-grep: do not support type-set in .ackrc

2 views
Skip to first unread message

Nicolas Évrard

unread,
Feb 12, 2013, 11:10:01 AM2/12/13
to
Package: ack-grep
Version: 1.96-2
Severity: normal

Hello,

Here is a snippet of a terminal session:

balisto:..ssue2996|codereview.tryton.org/|% ack --noenv --type-set rst=.rst --type=rst user > /dev/null && echo 'ok'
ok

balisto:..ssue2996|codereview.tryton.org/|% ack --type=rst user > /dev/null && echo 'ok'
Unknown option: type-set rst
ack-grep: Unknown --type "rst"
ack-grep: See ack-grep --help, ack-grep --help-types or ack-grep
--man for options.

balisto:..ssue2996|codereview.tryton.org/|% cat ~/.ackrc
--type-set rst=.rst

As you can see the content of ~/.ackrc is making ack (I have an alias
ack-grep -> ack) failing to work.

With more usual option (I tested --sort-files) it works without any
problem.

-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ack-grep depends on:
ii libfile-next-perl 1.10-1
ii perl 5.14.2-18

ack-grep recommends no packages.

Versions of packages ack-grep suggests:
ii bash-completion 1:2.0-1

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

gregor herrmann

unread,
Feb 12, 2013, 12:20:02 PM2/12/13
to
On Tue, 12 Feb 2013 16:41:33 +0100, Nicolas Évrard wrote:

> balisto:..ssue2996|codereview.tryton.org/|% ack --type=rst user > /dev/null && echo 'ok'
> Unknown option: type-set rst
> ack-grep: Unknown --type "rst"
> ack-grep: See ack-grep --help, ack-grep --help-types or ack-grep
> --man for options.
>
> balisto:..ssue2996|codereview.tryton.org/|% cat ~/.ackrc
> --type-set rst=.rst

--type-set=rst=.rst

seems to work for me in the way that I don't get the error anymore.
(taken from the manpage which has the example '--pager=less -r')


Cheers,
gregor

--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Schmetterlinge: Jalava-Lied
signature.asc
0 new messages