init.sh: do not rely on autoupated PWD
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Jun 2012 14:06:54 +0000 (07:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Jun 2012 14:08:43 +0000 (07:08 -0700)
commitc8485c41608e18bd1ab5ccfa9f8e5922f5c35c10
tree0f14e4db2ad65405523342e36c83083c8034ab79
parent4f3bf3d1842d49f1ee1d5164fcc16e01738c6a29
init.sh: do not rely on autoupated PWD

This addresses symptoms of the problem reported by Nelson H.F. Beebe in
<http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
Although Nelson's bug was not necessarily fixed by this patch,
it seems wise to make the change for safety.
* tests/init.sh (path_prepend_): Do not rely on PWD updating
automagically after 'cd'; this is not reliable on older shells.
(setup_): Fail if we cannot cd to temporary directory.
ChangeLog
tests/init.sh