init.sh: fix EXEEXT shims to work also for names like test-prog
authorJim Meyering <meyering@redhat.com>
Sun, 21 Feb 2010 16:47:43 +0000 (17:47 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 21 Feb 2010 16:59:45 +0000 (17:59 +0100)
commit87e7216daf261421a6acb43115812cccefd5dc5d
tree7cae458ec75c1db6ffb82b7f2e24efb0c943c463
parent97820eb5657492ee4fc785f64eab6a6ce0e7fa62
init.sh: fix EXEEXT shims to work also for names like test-prog

* tests/init.sh: Re-exec a better shell, when needed.
If the current shell lacks support for posix $(...), an init.sh-using
test will now try to find a shell that supports that.  If EXEEXT is
nonempty, we also require support for hyphen-in-alias-name and shell
substitutions like ${var#glob}.  Failure to find such a shell results
in a skipped test.
ChangeLog
tests/init.sh