Setting GREP_OPTIONS="" seems to have fixed the problem. The grep manual warns that '--perl-regexp' is experimental, so this might not be a problem with apt-file after all.
It might also be worth noting that grep is aliased to "grep --color=auto" on one user account. % which zgrep /bin/zgrep % ls -l /bin/zgrep -rwxr-xr-x 1 root root 5597 Jan 20 2010 /bin/zgrep % which grep /bin/grep % ls -l /bin/grep -rwxr-xr-x 1 root root 119288 Apr 21 2010 /bin/grep % echo $POSIXLY_CORRECT % echo $GREP_OPTIONS --perl-regexp % apt-cache policy gzip gzip: Installed: 1.3.12-9 Candidate: 1.3.12-9 Version table: *** 1.3.12-9 0 990 ftp://ftp.us.debian.org/debian/ wheezy/main amd64 Packages 500 ftp://ftp.us.debian.org/debian/ sid/main amd64 Packages 100 /var/lib/dpkg/status % apt-cache policy grep grep: Installed: 2.6.3-3 Candidate: 2.6.3-3 Version table: *** 2.6.3-3 0 990 ftp://ftp.us.debian.org/debian/ wheezy/main amd64 Packages 500 ftp://ftp.us.debian.org/debian/ sid/main amd64 Packages 100 /var/lib/dpkg/status On Mon, Mar 7, 2011 at 5:23 AM, Stefan Fritsch <s...@sfritsch.de> wrote: > On Monday 07 March 2011, you wrote: >> Running `apt-file search 'pattern'` simply prints >> grep: conflicting matchers specified >> grep: conflicting matchers specified >> grep: conflicting matchers specified >> grep: conflicting matchers specified >> grep: conflicting matchers specified >> >> with every pattern I've tried. I have tried running the script as >> different users, in different shells (bash and zsh), and with >> different Perl versions (5.10,1 and 5.12.3). >> >> However, when the '--regexp' option is given, this error does not >> occur and the program behaves normally. The verbose output (below) >> suggests that the problem is with zfgrep in the do_grep >> subroutine. > > Can you please provide the output of > > which zgrep > ls -l $(which zgrep) > which grep > ls -l $(which grep) > echo $POSIXLY_CORRECT > echo $GREP_OPTIONS > > from the same shell where you call apt-file? Which versions of gzip > and grep do you have installed? > > Thanks. > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org