zgrep: handle a multi-digit context option like -15
authorJim Meyering <meyering@redhat.com>
Tue, 7 Aug 2012 08:21:55 +0000 (10:21 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 8 Aug 2012 08:01:54 +0000 (10:01 +0200)
commitdc6196e2a041c022f8382b7e610b095718acccfa
treecea9e732b94955330bef5c2f3d0f2ff6b10d9954
parent952d5f4316a495940b268e5ae7fc8feab3a812a3
zgrep: handle a multi-digit context option like -15

* zgrep.in: Do not malfunction when given an option like -15.
Before, it could end up treating the pattern as a file name:

  $ echo x | gzip | zgrep -15 x
  gzip: x.gz: No such file or directory

* NEWS (Bug fixes): Mention it.
Reported by Dan Bloch via Thomas Bushnell in
https://bugs.launchpad.net/bugs/1032831
NEWS
zgrep.in