Package: git
Version: 1:2.7.0-1
Severity: normal
If I run this series of commands:
cd $(mktemp -d)
git init
echo foo > foo
git add foo
git grep -n '^$' foo
git incorrectly shows a match on line 2 of the 1-line file.
Ben.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages git depends on:
ii git-man 1:2.7.0-1
ii libc6 2.21-7
ii libcurl3-gnutls 7.47.0-1
ii liberror-perl 0.17-1.2
ii libexpat1 2.1.0-7
ii libpcre3 2:8.38-1
ii perl-modules-5.22 [perl-modules] 5.22.1-5
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages git recommends:
ii less 481-2
ii openssh-client [ssh-client] 1:7.1p2-2
ii patch 2.7.5-1
ii rsync 3.1.1-3
Versions of packages git suggests:
ii gettext-base 0.19.7-2
pn git-arch <none>
ii git-cvs 1:2.7.0-1
pn git-daemon-run | git-daemon-sysvinit <none>
pn git-doc <none>
pn git-el <none>
pn git-email <none>
pn git-gui <none>
pn git-mediawiki <none>
ii git-svn 1:2.7.0-1
ii gitk 1:2.7.0-1
pn gitweb <none>
-- no debconf information