| 1 |
ack (3.0.2-1) unstable; urgency=low |
| 2 |
|
| 3 |
From upstream Changes: |
| 4 |
|
| 5 |
ack 3 no longer highlights capture groups. |
| 6 |
------------------------------------------ |
| 7 |
|
| 8 |
ack 2 would highlight your capture groups. For example, |
| 9 |
|
| 10 |
ack '(set|get)_foo_(name|id)' |
| 11 |
|
| 12 |
would highlight the `set` or `get`, and the `name` or `id`, but not the |
| 13 |
full `set_user_id` that was matched. |
| 14 |
|
| 15 |
This feature was too confusing and has been removed. Now, the entire |
| 16 |
matching string is highlighted. |
| 17 |
|
| 18 |
ack 3's --output allows fewer special variables |
| 19 |
----------------------------------------------- |
| 20 |
|
| 21 |
In ack 2, you could put any kind of Perl code in the `--output` |
| 22 |
option and it would get `eval`uated at run time, which would let |
| 23 |
you do tricky stuff like this gem from Mark Fowler |
| 24 |
(http://www.perladvent.org/2014/2014-12-21.html): |
| 25 |
|
| 26 |
ack --output='$&: @{[ eval "use LWP::Simple; 1" && length LWP::Simple::get($&) ]} bytes' \ |
| 27 |
'https?://\S+' list.txt |
| 28 |
http://google.com/: 19529 bytes |
| 29 |
http://metacpan.org/: 7560 bytes |
| 30 |
http://www.perladvent.org/: 5562 bytes |
| 31 |
|
| 32 |
This has been a security problem in the past, and so in ack 3 we |
| 33 |
no longer `eval` the contents of `--output`. You're now restricted |
| 34 |
to the following variables: `$1` thru `$9`, `$_`, `$.`, `$&`, ``$` ``, |
| 35 |
`$'` and `$+`. You can also embed `\t`, `\n` and `\r` , |
| 36 |
and `$f` as stand-in for `$filename` in `ack2 --output` . |
| 37 |
|
| 38 |
-- Axel Beckert <[email protected]> Wed, 24 Jul 2019 23:48:40 +0200 |
| 39 |
|
| 40 |
ack-grep (2.12-2) unstable; urgency=low |
| 41 |
|
| 42 |
The program "ack" is no more renamed to "ack-grep" since the conflicting |
| 43 |
"ack", a Kanji code converter, has been removed from Debian (see #662114). |
| 44 |
|
| 45 |
For a transitional phase of one Debian release, the package will though |
| 46 |
contain symlinks from ack-grep to ack for backwards compatibility. |
| 47 |
|
| 48 |
-- Axel Beckert <[email protected]> Mon, 17 Feb 2014 18:03:56 +0100 |
| 49 |
|
| 50 |
ack-grep (2.04-1) unstable; urgency=low |
| 51 |
|
| 52 |
From upstream Changes: |
| 53 |
|
| 54 |
ack 2 makes some big changes in its behaviors that could trip up |
| 55 |
users who are used to the idiosyncracies of ack 1.x. These changes |
| 56 |
could affect your searching happiness, so please read them. |
| 57 |
|
| 58 |
Read the full list in /usr/share/doc/ack-grep/changelog.gz. |
| 59 |
|
| 60 |
-- gregor herrmann <[email protected]> Sat, 11 May 2013 18:38:48 +0200 |