Package: ack-grep
Version: 2.14-4

When ack prints filenames, it strips leading "./". This is harmful when you pass these filenames to another program, because a filename starting with "--" might be interpreted as an option:

$ ls
--interactive=.html
$ ack -f --html --print0 ./ | xargs -0 rm -f
rm: invalid argument ‘.html’ for ‘--interactive’
Valid arguments are:
 - ‘never’, ‘no’, ‘none’
 - ‘once’
 - ‘always’, ‘yes’
Try 'rm --help' for more information.


(See bug #791722 for context.)

-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.1.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ack-grep depends on:
ii  libfile-next-perl  1.12-1
ii  perl               5.20.2-6

--
Jakub Wilk

Reply via email to