zless: improve gzip failure checking, and port to new -V format
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 7 Mar 2014 01:31:25 +0000 (17:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 7 Mar 2014 01:35:12 +0000 (17:35 -0800)
commit49dc6efd76d105acccbb14e8c213f3ac95ce08e9
treee2962c12a852b4e0677935294602de9326937f70
parentf4ea7ba0bd70b1fc9986aca3d76bf46b4fb8ec52
zless: improve gzip failure checking, and port to new -V format

Problem reported by Jaroslaw Weglinski, and LESSOPEN change
suggested by Mark Nudelman, in: http://bugs.gnu.org/16951
This doesn't fix bug 16951 entirely, as 'less' needs to be changed
too, but it's a start.
* zless.in (check_exit_status): New var.
(LESSOPEN): Use it.
(use_input_pipe_on_stdin): Adjust to output format on Fedora 20,
where 'less -V' outputs "less 458 (POSIX regular expressions)"
on the first line.
zless.in