init.sh: improve portability and efficiency
authorJim Meyering <meyering@redhat.com>
Sat, 13 Feb 2010 14:51:37 +0000 (15:51 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 06:33:32 +0000 (07:33 +0100)
commit41a491730bebcfccd55543a4ce84dd9deda6912f
treeea874d9885bfd361387f1d10f6a8be6b6060e153
parent9d2dcbfcfd0b8be3d89332aafbb731935f029915
init.sh: improve portability and efficiency

* tests/init.sh (find_exe_basenames_): Remove unnecessary use of
"dummy" in a for loop.
Use '!', not '^' to select the complement of a character set used
in a "case" statement.
Use shell variable manipulation, a la ${...%.exe}, rather than sed.
Suggestions from Eric Blake.
tests/init.sh