tests: work even if non-GNU gzip is installed in /usr/local/bin
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Apr 2013 22:26:47 +0000 (15:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Apr 2013 22:27:16 +0000 (15:27 -0700)
commit7a061649358367ddd62dce4c31029532ed733447
treee98d079a53a2d16e1ac31c5db378634db99cbe94
parent015db6cd6bd628962d89956910ed8c58956a351a
tests: work even if non-GNU gzip is installed in /usr/local/bin

Problem reported by Antonio Diaz Diaz in
<http://lists.gnu.org/archive/html/bug-gzip/2013-04/msg00004.html>.
* tests/help-version (zdiff_setup, zcat_setup, znew_setup, zgrep_setup)
(gzexe_setup): Pass --__bindir so that subsidiary programs are our
own's, not /usr/local/bin's.  This requires using 'eval' on the result.
(zcmp_setup, gunzip_setup, zmore_setup, zless_setup, zforce_setup)
(zegrep_setup, zfgrep_setup): Invoke one of the other setup functions,
to make the patterns more obvious and simplify future maintenance.
* zcmp.in, zegrep.in, zfgrep.in: Pass __bindir to subsidiary program.
tests/help-version
zcmp.in
zegrep.in
zfgrep.in