aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2008-07-09 01:17:08 -0400
committerAvatar Mike Kelly <pioto@pioto.org> 2008-07-09 01:17:08 -0400
commit8f0a81f559104cc2fb5019174a94ee876e5eec03 (patch)
treed1e775a19fe7551b79e88c5cfaa8935826bb92fe /paludis
parentdf236f53f37b51d462b428ce1ff84943366c4acc (diff)
downloadpaludis-8f0a81f559104cc2fb5019174a94ee876e5eec03.tar.gz
paludis-8f0a81f559104cc2fb5019174a94ee876e5eec03.tar.xz
Use /usr/bin/env bash instead of /bin/bash for the shebang of shell scripts.
This should make things run more nicely on systems like FreeBSD, where bash isn't installed in /bin.
Diffstat (limited to 'paludis')
-rw-r--r--paludis/action.se2
-rw-r--r--paludis/dep_list.sr2
-rw-r--r--paludis/dep_list_options.se2
-rw-r--r--paludis/elike_package_dep_spec.se2
-rw-r--r--paludis/elike_use_requirement.se2
-rw-r--r--paludis/environments/no_config/no_config_environment.se2
-rw-r--r--paludis/environments/no_config/no_config_environment.sr2
-rwxr-xr-xpaludis/environments/no_config/no_config_environment_TEST_cleanup.sh2
-rwxr-xr-xpaludis/environments/no_config/no_config_environment_TEST_setup.sh2
-rwxr-xr-xpaludis/environments/paludis/paludis_environment_TEST_cleanup.sh2
-rwxr-xr-xpaludis/environments/paludis/paludis_environment_TEST_setup.sh2
-rw-r--r--paludis/environments/paludis/use_config_entry.sr2
-rw-r--r--paludis/environments/portage/bashrc2
-rwxr-xr-xpaludis/environments/portage/portage_environment_TEST_cleanup.sh2
-rwxr-xr-xpaludis/environments/portage/portage_environment_TEST_setup.sh2
-rwxr-xr-xpaludis/fetchers/dofile2
-rwxr-xr-xpaludis/fetchers/dowget.in2
-rw-r--r--paludis/hook.se2
-rw-r--r--paludis/hook.sr2
-rwxr-xr-xpaludis/hooker.bash2
-rwxr-xr-xpaludis/hooker_TEST_cleanup.sh2
-rwxr-xr-xpaludis/hooker_TEST_setup.sh2
-rw-r--r--paludis/host_tuple_name.sr2
-rw-r--r--paludis/install_task.se2
-rw-r--r--paludis/merger.se2
-rwxr-xr-xpaludis/merger_TEST_cleanup.sh2
-rwxr-xr-xpaludis/merger_TEST_setup.sh2
-rw-r--r--paludis/merger_entry_type.se2
-rw-r--r--paludis/metadata_key.se2
-rw-r--r--paludis/name.se2
-rw-r--r--paludis/name.sr2
-rw-r--r--paludis/package_id.se2
-rw-r--r--paludis/qa.se2
-rw-r--r--paludis/qa.sr2
-rw-r--r--paludis/repositories/cran/cran/cran.bash2
-rw-r--r--paludis/repositories/cran/cran_installed_repository.sr2
-rw-r--r--paludis/repositories/cran/cran_repository.sr2
-rw-r--r--paludis/repositories/e/dep_parser.se2
-rw-r--r--paludis/repositories/e/e_installed_repository.sr2
-rwxr-xr-xpaludis/repositories/e/e_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/e_repository_TEST_setup.sh4
-rw-r--r--paludis/repositories/e/e_repository_params.se2
-rw-r--r--paludis/repositories/e/e_repository_params.sr2
-rwxr-xr-xpaludis/repositories/e/e_repository_sets_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/e_repository_sets_TEST_setup.sh2
-rw-r--r--paludis/repositories/e/eapi.sr2
-rw-r--r--paludis/repositories/e/ebuild/0/build_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_infovars.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_init.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_initmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_initrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killold.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killoldrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_loadenv.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_metadata.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_saveenv.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyup.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_variable.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/conditional_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/conditional_functions_TEST.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/eclass_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/ever_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/exlib_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/list_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/list_functions_TEST.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_config.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_info.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_nofetch.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_postinst.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_postrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_preinst.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_prerm.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_pretend.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_setup.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/portage_stubs.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/src_compile.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/src_install.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/src_test.bash2
-rw-r--r--paludis/repositories/e/ebuild/0/src_unpack.bash2
-rw-r--r--paludis/repositories/e/ebuild/1/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/1/src_compile.bash2
-rw-r--r--paludis/repositories/e/ebuild/binary_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/die_functions.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/build_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_init.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_metadata.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_variable.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/exheres-0/conditional_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/conditional_functions_TEST.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/eclass_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/ever_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/list_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/list_functions_TEST.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_config.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_info.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_nofetch.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/exheres-0/portage_stubs.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_compile.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_configure.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_install.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_prepare.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_test.bash2
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_unpack.bash2
-rw-r--r--paludis/repositories/e/ebuild/install_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/kdebuild-1/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/kernel_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/kernel_functions_TEST.bash2
-rw-r--r--paludis/repositories/e/ebuild/multilib_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/paludis-1/output_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash2
-rw-r--r--paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/pipe_functions.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/run_test.bash2
-rw-r--r--paludis/repositories/e/ebuild/sandbox.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/source_functions.bash2
-rw-r--r--paludis/repositories/e/ebuild/usage_error.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/awk2
-rw-r--r--paludis/repositories/e/ebuild/utils/awk_TEST.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/canonicalise2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dobin2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doconfd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodir2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodoc2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doenvd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doexe2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohard2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doinfo2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doinitd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doins2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dolib2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dolib.a2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dolib.so2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/doman2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/domo2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/donewins2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dosbin2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dosed2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dosym2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/ecompress2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/ecompressdir2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/emake2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-02
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/exheres-0/nonfatal2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/fowners2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/fperms2
-rw-r--r--paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-12
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/make2
-rw-r--r--paludis/repositories/e/ebuild/utils/make_TEST.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newbin2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newconfd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newdoc2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newenvd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newexe2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newinitd2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newins2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newlib.a2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newlib.so2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newman2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newsbin2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/patch2
-rw-r--r--paludis/repositories/e/ebuild/utils/patch_TEST.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/prep.in2
-rw-r--r--paludis/repositories/e/ebuild/utils/run_test.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/sed2
-rw-r--r--paludis/repositories/e/ebuild/utils/sed_TEST.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/unpack2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/wrapped_getfsize2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/wrapped_getfsize_TEST.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/wrapped_getmtime2
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/wrapped_ldconfig2
-rw-r--r--paludis/repositories/e/ebuild/write_binary_ebuild.bash2
-rwxr-xr-xpaludis/repositories/e/ebuild/write_vdb_entry.bash2
-rw-r--r--paludis/repositories/e/exndbam_repository.sr2
-rwxr-xr-xpaludis/repositories/e/exndbam_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/exndbam_repository_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/fetch_visitor_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/fetch_visitor_TEST_setup.sh2
-rw-r--r--paludis/repositories/e/manifest2_entry.sr2
-rwxr-xr-xpaludis/repositories/e/qa/manifest_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/qa/manifest_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/qa/misc_files_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/qa/misc_files_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/qa/visibility_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/qa/visibility_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/vdb_merger_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/vdb_merger_TEST_setup.sh2
-rw-r--r--paludis/repositories/e/vdb_repository.sr2
-rwxr-xr-xpaludis/repositories/e/vdb_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/vdb_repository_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/vdb_unmerger_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/vdb_unmerger_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/e/xml_things_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/e/xml_things_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/gems/gems.bash2
-rwxr-xr-xpaludis/repositories/gems/gems_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/gems/gems_repository_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/gems/installed_gems_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/gems/installed_gems_repository_TEST_setup.sh2
-rw-r--r--paludis/repositories/gems/params.sr2
-rwxr-xr-xpaludis/repositories/unavailable/unavailable_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/unavailable/unavailable_repository_TEST_setup.sh2
-rw-r--r--paludis/repositories/unpackaged/installed_repository.sr2
-rwxr-xr-xpaludis/repositories/unpackaged/installed_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/unpackaged/installed_repository_TEST_setup.sh2
-rwxr-xr-xpaludis/repositories/unpackaged/unpackaged_repository_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repositories/unpackaged/unpackaged_repository_TEST_setup.sh2
-rwxr-xr-xpaludis/repository_name_cache_TEST_cleanup.sh2
-rwxr-xr-xpaludis/repository_name_cache_TEST_setup.sh2
-rw-r--r--paludis/set_file.se2
-rwxr-xr-xpaludis/set_file_TEST_cleanup.sh2
-rwxr-xr-xpaludis/set_file_TEST_setup.sh2
-rw-r--r--paludis/stage_options.sr2
-rwxr-xr-xpaludis/stripper_TEST_cleanup.sh2
-rwxr-xr-xpaludis/stripper_TEST_setup.sh2
-rw-r--r--paludis/syncers/dobzr.in2
-rw-r--r--paludis/syncers/docvs.in2
-rw-r--r--paludis/syncers/dodarcs.in2
-rw-r--r--paludis/syncers/dodummy2
-rw-r--r--paludis/syncers/dogit.in2
-rw-r--r--paludis/syncers/dorsync.in2
-rw-r--r--paludis/syncers/dosvn.in2
-rw-r--r--paludis/syncers/dotar.in2
-rw-r--r--paludis/uninstall_list.se2
-rw-r--r--paludis/uninstall_list.sr2
-rw-r--r--paludis/user_dep_spec.se2
-rw-r--r--paludis/util/config_file.se2
-rwxr-xr-xpaludis/util/config_file_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/config_file_TEST_setup.sh2
-rw-r--r--paludis/util/dir_iterator.se2
-rwxr-xr-xpaludis/util/dir_iterator_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/dir_iterator_TEST_setup.sh2
-rw-r--r--paludis/util/echo_functions.bash.in2
-rwxr-xr-xpaludis/util/fs_entry_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/fs_entry_TEST_setup.sh2
-rw-r--r--paludis/util/is_file_with_extension.se2
-rwxr-xr-xpaludis/util/is_file_with_extension_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/is_file_with_extension_TEST_setup.sh2
-rw-r--r--paludis/util/log.se2
-rwxr-xr-xpaludis/util/output_wrapper_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/output_wrapper_TEST_setup.sh2
-rwxr-xr-xpaludis/util/system_TEST_cleanup.sh2
-rwxr-xr-xpaludis/util/system_TEST_setup.sh6
-rw-r--r--paludis/version_operator.se2
-rw-r--r--paludis/version_requirements.sr2
270 files changed, 273 insertions, 273 deletions
diff --git a/paludis/action.se b/paludis/action.se
index 35be7b137..d549eb41f 100644
--- a/paludis/action.se
+++ b/paludis/action.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_InstallActionDebugOption()
diff --git a/paludis/dep_list.sr b/paludis/dep_list.sr
index f30d3e9ec..814e6b4ea 100644
--- a/paludis/dep_list.sr
+++ b/paludis/dep_list.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_DepListOptions()
diff --git a/paludis/dep_list_options.se b/paludis/dep_list_options.se
index c26d60e23..be548576a 100644
--- a/paludis/dep_list_options.se
+++ b/paludis/dep_list_options.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_DepListTargetType()
diff --git a/paludis/elike_package_dep_spec.se b/paludis/elike_package_dep_spec.se
index 7e8734ab7..e1164893c 100644
--- a/paludis/elike_package_dep_spec.se
+++ b/paludis/elike_package_dep_spec.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_ELikePackageDepSpecOption()
diff --git a/paludis/elike_use_requirement.se b/paludis/elike_use_requirement.se
index 442c60c80..e1c114a53 100644
--- a/paludis/elike_use_requirement.se
+++ b/paludis/elike_use_requirement.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_ELikeUseRequirementOption()
diff --git a/paludis/environments/no_config/no_config_environment.se b/paludis/environments/no_config/no_config_environment.se
index 85cd57cf5..32376de2d 100644
--- a/paludis/environments/no_config/no_config_environment.se
+++ b/paludis/environments/no_config/no_config_environment.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_RepositoryType()
diff --git a/paludis/environments/no_config/no_config_environment.sr b/paludis/environments/no_config/no_config_environment.sr
index c6c76f3e0..e459802a8 100644
--- a/paludis/environments/no_config/no_config_environment.sr
+++ b/paludis/environments/no_config/no_config_environment.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_Params()
diff --git a/paludis/environments/no_config/no_config_environment_TEST_cleanup.sh b/paludis/environments/no_config/no_config_environment_TEST_cleanup.sh
index 43e621d83..1948f4236 100755
--- a/paludis/environments/no_config/no_config_environment_TEST_cleanup.sh
+++ b/paludis/environments/no_config/no_config_environment_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d no_config_environment_TEST_dir ] ; then
diff --git a/paludis/environments/no_config/no_config_environment_TEST_setup.sh b/paludis/environments/no_config/no_config_environment_TEST_setup.sh
index 7fcf32ac5..a4421aaa2 100755
--- a/paludis/environments/no_config/no_config_environment_TEST_setup.sh
+++ b/paludis/environments/no_config/no_config_environment_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir no_config_environment_TEST_dir || exit 2
diff --git a/paludis/environments/paludis/paludis_environment_TEST_cleanup.sh b/paludis/environments/paludis/paludis_environment_TEST_cleanup.sh
index 043f533c6..87480336d 100755
--- a/paludis/environments/paludis/paludis_environment_TEST_cleanup.sh
+++ b/paludis/environments/paludis/paludis_environment_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d paludis_environment_TEST_dir ] ; then
diff --git a/paludis/environments/paludis/paludis_environment_TEST_setup.sh b/paludis/environments/paludis/paludis_environment_TEST_setup.sh
index 9a481e46b..df5b2e26a 100755
--- a/paludis/environments/paludis/paludis_environment_TEST_setup.sh
+++ b/paludis/environments/paludis/paludis_environment_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir paludis_environment_TEST_dir || exit 2
diff --git a/paludis/environments/paludis/use_config_entry.sr b/paludis/environments/paludis/use_config_entry.sr
index 046c0454d..3abaf8d4a 100644
--- a/paludis/environments/paludis/use_config_entry.sr
+++ b/paludis/environments/paludis/use_config_entry.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_UseConfigEntry()
diff --git a/paludis/environments/portage/bashrc b/paludis/environments/portage/bashrc
index 381bb0b98..48466f6e5 100644
--- a/paludis/environments/portage/bashrc
+++ b/paludis/environments/portage/bashrc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# ebuild.bash doesn't allow USE etc to be set in user settings. But we need
# to source make.conf to pick up things like CFLAGS.
diff --git a/paludis/environments/portage/portage_environment_TEST_cleanup.sh b/paludis/environments/portage/portage_environment_TEST_cleanup.sh
index b64b00fa1..ba8c8d23d 100755
--- a/paludis/environments/portage/portage_environment_TEST_cleanup.sh
+++ b/paludis/environments/portage/portage_environment_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d portage_environment_TEST_dir ] ; then
diff --git a/paludis/environments/portage/portage_environment_TEST_setup.sh b/paludis/environments/portage/portage_environment_TEST_setup.sh
index 4b71aa8e9..4f4d76775 100755
--- a/paludis/environments/portage/portage_environment_TEST_setup.sh
+++ b/paludis/environments/portage/portage_environment_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir portage_environment_TEST_dir || exit 2
diff --git a/paludis/fetchers/dofile b/paludis/fetchers/dofile
index fd3e54bf5..190639a71 100755
--- a/paludis/fetchers/dofile
+++ b/paludis/fetchers/dofile
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
shopt -s extglob
echo cp "/${1##file:+(/)}" "${2}" 1>&2
diff --git a/paludis/fetchers/dowget.in b/paludis/fetchers/dowget.in
index 8f4f9ab6a..165888c9a 100755
--- a/paludis/fetchers/dowget.in
+++ b/paludis/fetchers/dowget.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/hook.se b/paludis/hook.se
index 6ea3773ba..02ab8f124 100644
--- a/paludis/hook.se
+++ b/paludis/hook.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_HookOutputDestination()
diff --git a/paludis/hook.sr b/paludis/hook.sr
index 43c5b269c..6bb95e1f7 100644
--- a/paludis/hook.sr
+++ b/paludis/hook.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_HookResult()
diff --git a/paludis/hooker.bash b/paludis/hooker.bash
index c97e56c48..753161c8e 100755
--- a/paludis/hooker.bash
+++ b/paludis/hooker.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/hooker_TEST_cleanup.sh b/paludis/hooker_TEST_cleanup.sh
index 6cf70d18b..541168961 100755
--- a/paludis/hooker_TEST_cleanup.sh
+++ b/paludis/hooker_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d hooker_TEST_dir ] ; then
diff --git a/paludis/hooker_TEST_setup.sh b/paludis/hooker_TEST_setup.sh
index 19c382c54..1ae83beef 100755
--- a/paludis/hooker_TEST_setup.sh
+++ b/paludis/hooker_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir hooker_TEST_dir || exit 2
diff --git a/paludis/host_tuple_name.sr b/paludis/host_tuple_name.sr
index b831a9719..1458ae79a 100644
--- a/paludis/host_tuple_name.sr
+++ b/paludis/host_tuple_name.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_HostTupleName()
diff --git a/paludis/install_task.se b/paludis/install_task.se
index de8c1a726..a78a14011 100644
--- a/paludis/install_task.se
+++ b/paludis/install_task.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_InstallTaskContinueOnFailure()
diff --git a/paludis/merger.se b/paludis/merger.se
index 766455d54..205462148 100644
--- a/paludis/merger.se
+++ b/paludis/merger.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_MergeStatusFlag()
diff --git a/paludis/merger_TEST_cleanup.sh b/paludis/merger_TEST_cleanup.sh
index 44df00e10..5acd496a8 100755
--- a/paludis/merger_TEST_cleanup.sh
+++ b/paludis/merger_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d merger_TEST_dir ] ; then
diff --git a/paludis/merger_TEST_setup.sh b/paludis/merger_TEST_setup.sh
index 22b89cccf..b716a5dc7 100755
--- a/paludis/merger_TEST_setup.sh
+++ b/paludis/merger_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir merger_TEST_dir || exit 2
diff --git a/paludis/merger_entry_type.se b/paludis/merger_entry_type.se
index 90509de54..263e58715 100644
--- a/paludis/merger_entry_type.se
+++ b/paludis/merger_entry_type.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_EntryType()
diff --git a/paludis/metadata_key.se b/paludis/metadata_key.se
index 234f92c6a..28df6c096 100644
--- a/paludis/metadata_key.se
+++ b/paludis/metadata_key.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_MetadataKeyType()
diff --git a/paludis/name.se b/paludis/name.se
index c0c60194a..32f177e3f 100644
--- a/paludis/name.se
+++ b/paludis/name.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_UseFlagState()
diff --git a/paludis/name.sr b/paludis/name.sr
index 88604ef27..9ed0bde92 100644
--- a/paludis/name.sr
+++ b/paludis/name.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_QualifiedPackageName()
diff --git a/paludis/package_id.se b/paludis/package_id.se
index 841acbabe..7948383f4 100644
--- a/paludis/package_id.se
+++ b/paludis/package_id.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_PackageIDCanonicalForm()
diff --git a/paludis/qa.se b/paludis/qa.se
index 11210c388..d9e816bd2 100644
--- a/paludis/qa.se
+++ b/paludis/qa.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_QAMessageLevel()
diff --git a/paludis/qa.sr b/paludis/qa.sr
index 50d3df1c5..f6290c03c 100644
--- a/paludis/qa.sr
+++ b/paludis/qa.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_QAMessage()
diff --git a/paludis/repositories/cran/cran/cran.bash b/paludis/repositories/cran/cran/cran.bash
index e472088e9..ba70ffcb7 100644
--- a/paludis/repositories/cran/cran/cran.bash
+++ b/paludis/repositories/cran/cran/cran.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006,2007 Danny van Dyk
diff --git a/paludis/repositories/cran/cran_installed_repository.sr b/paludis/repositories/cran/cran_installed_repository.sr
index c892bb2c6..3b5619697 100644
--- a/paludis/repositories/cran/cran_installed_repository.sr
+++ b/paludis/repositories/cran/cran_installed_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_CRANInstalledRepositoryParams()
diff --git a/paludis/repositories/cran/cran_repository.sr b/paludis/repositories/cran/cran_repository.sr
index fb5732dd7..6da3346fe 100644
--- a/paludis/repositories/cran/cran_repository.sr
+++ b/paludis/repositories/cran/cran_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_CRANRepositoryParams()
diff --git a/paludis/repositories/e/dep_parser.se b/paludis/repositories/e/dep_parser.se
index bf3c9ebdc..4dd255517 100644
--- a/paludis/repositories/e/dep_parser.se
+++ b/paludis/repositories/e/dep_parser.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_DependencySpecTreeParseOption()
diff --git a/paludis/repositories/e/e_installed_repository.sr b/paludis/repositories/e/e_installed_repository.sr
index c9914dbee..83833689d 100644
--- a/paludis/repositories/e/e_installed_repository.sr
+++ b/paludis/repositories/e/e_installed_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_EInstalledRepositoryParams()
diff --git a/paludis/repositories/e/e_repository_TEST_cleanup.sh b/paludis/repositories/e/e_repository_TEST_cleanup.sh
index 3fcc1aac1..6a64e5fb6 100755
--- a/paludis/repositories/e/e_repository_TEST_cleanup.sh
+++ b/paludis/repositories/e/e_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d e_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/e/e_repository_TEST_setup.sh b/paludis/repositories/e/e_repository_TEST_setup.sh
index 6b173e468..63969b888 100755
--- a/paludis/repositories/e/e_repository_TEST_setup.sh
+++ b/paludis/repositories/e/e_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir e_repository_TEST_dir || exit 1
@@ -1655,7 +1655,7 @@ DEFAULT_SRC_CONFIGURE_OPTION_WITHS="dormouse"
src_unpack() {
mkdir ${S}
cat <<'END2' > ${S}/configure
-#!/bin/bash
+#!/usr/bin/env bash
echo "${@}" | grep -q -- '--enable-enabled-hamster' || exit 1
echo "${@}" | grep -q -- '--disable-gerbil' || exit 2
echo "${@}" | grep -q -- '--nice-juicy-steak' || exit 3
diff --git a/paludis/repositories/e/e_repository_params.se b/paludis/repositories/e/e_repository_params.se
index 7420af898..6a249ec35 100644
--- a/paludis/repositories/e/e_repository_params.se
+++ b/paludis/repositories/e/e_repository_params.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_UseManifest()
diff --git a/paludis/repositories/e/e_repository_params.sr b/paludis/repositories/e/e_repository_params.sr
index 1bc7a51bb..e06734926 100644
--- a/paludis/repositories/e/e_repository_params.sr
+++ b/paludis/repositories/e/e_repository_params.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_ERepositoryParams()
diff --git a/paludis/repositories/e/e_repository_sets_TEST_cleanup.sh b/paludis/repositories/e/e_repository_sets_TEST_cleanup.sh
index 03e732037..c62ea9d20 100755
--- a/paludis/repositories/e/e_repository_sets_TEST_cleanup.sh
+++ b/paludis/repositories/e/e_repository_sets_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d e_repository_sets_TEST_dir ] ; then
diff --git a/paludis/repositories/e/e_repository_sets_TEST_setup.sh b/paludis/repositories/e/e_repository_sets_TEST_setup.sh
index b6167e846..376dc708c 100755
--- a/paludis/repositories/e/e_repository_sets_TEST_setup.sh
+++ b/paludis/repositories/e/e_repository_sets_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir e_repository_sets_TEST_dir || exit 1
diff --git a/paludis/repositories/e/eapi.sr b/paludis/repositories/e/eapi.sr
index e43eb332e..24bad0ac2 100644
--- a/paludis/repositories/e/eapi.sr
+++ b/paludis/repositories/e/eapi.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_class_EAPIEbuildPhases()
diff --git a/paludis/repositories/e/ebuild/0/build_functions.bash b/paludis/repositories/e/ebuild/0/build_functions.bash
index 0a71e890a..03ca2cd78 100644
--- a/paludis/repositories/e/ebuild/0/build_functions.bash
+++ b/paludis/repositories/e/ebuild/0/build_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_infovars.bash b/paludis/repositories/e/ebuild/0/builtin_infovars.bash
index 1c7c429e7..a603282c4 100644
--- a/paludis/repositories/e/ebuild/0/builtin_infovars.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_infovars.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_init.bash b/paludis/repositories/e/ebuild/0/builtin_init.bash
index ee56fff8a..46bcbba77 100644
--- a/paludis/repositories/e/ebuild/0/builtin_init.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_init.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_initmisc.bash b/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
index e449f1d95..265574910 100644
--- a/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_initrm.bash b/paludis/repositories/e/ebuild/0/builtin_initrm.bash
index b06142e1a..87193f66b 100644
--- a/paludis/repositories/e/ebuild/0/builtin_initrm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_initrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_killold.bash b/paludis/repositories/e/ebuild/0/builtin_killold.bash
index 8532b8545..a528a3a63 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killold.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killold.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash b/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
index f56e98f20..4f4896581 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash b/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
index 473162816..9a064e5cb 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_loadenv.bash b/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
index fe1c916c5..365f4963b 100644
--- a/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_metadata.bash b/paludis/repositories/e/ebuild/0/builtin_metadata.bash
index 07c9dc75f..849648dd1 100644
--- a/paludis/repositories/e/ebuild/0/builtin_metadata.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_metadata.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_saveenv.bash b/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
index b227b3299..a17346ddb 100644
--- a/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyup.bash b/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
index 0336939d3..1c52d54a3 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash b/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
index 054d1c8c4..8d83ee337 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash b/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
index 82408b0c9..1eb9d44f6 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/builtin_variable.bash b/paludis/repositories/e/ebuild/0/builtin_variable.bash
index ce0c0b116..6b1783733 100644
--- a/paludis/repositories/e/ebuild/0/builtin_variable.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_variable.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/conditional_functions.bash b/paludis/repositories/e/ebuild/0/conditional_functions.bash
index 3bd41c51e..d464317fe 100644
--- a/paludis/repositories/e/ebuild/0/conditional_functions.bash
+++ b/paludis/repositories/e/ebuild/0/conditional_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/conditional_functions_TEST.bash b/paludis/repositories/e/ebuild/0/conditional_functions_TEST.bash
index 68abc0746..4e31924b3 100644
--- a/paludis/repositories/e/ebuild/0/conditional_functions_TEST.bash
+++ b/paludis/repositories/e/ebuild/0/conditional_functions_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/eclass_functions.bash b/paludis/repositories/e/ebuild/0/eclass_functions.bash
index 14ded4773..62f1e6750 100644
--- a/paludis/repositories/e/ebuild/0/eclass_functions.bash
+++ b/paludis/repositories/e/ebuild/0/eclass_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/ever_functions.bash b/paludis/repositories/e/ebuild/0/ever_functions.bash
index 09249dc03..00f4d14e4 100644
--- a/paludis/repositories/e/ebuild/0/ever_functions.bash
+++ b/paludis/repositories/e/ebuild/0/ever_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/exlib_functions.bash b/paludis/repositories/e/ebuild/0/exlib_functions.bash
index fd77bba9d..aa0cbb812 100644
--- a/paludis/repositories/e/ebuild/0/exlib_functions.bash
+++ b/paludis/repositories/e/ebuild/0/exlib_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/list_functions.bash b/paludis/repositories/e/ebuild/0/list_functions.bash
index 4cd49faf8..27046aedc 100644
--- a/paludis/repositories/e/ebuild/0/list_functions.bash
+++ b/paludis/repositories/e/ebuild/0/list_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/list_functions_TEST.bash b/paludis/repositories/e/ebuild/0/list_functions_TEST.bash
index 4c99c5779..d378cd7ab 100644
--- a/paludis/repositories/e/ebuild/0/list_functions_TEST.bash
+++ b/paludis/repositories/e/ebuild/0/list_functions_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/output_functions.bash b/paludis/repositories/e/ebuild/0/output_functions.bash
index e22fde41c..b6cee47b9 100644
--- a/paludis/repositories/e/ebuild/0/output_functions.bash
+++ b/paludis/repositories/e/ebuild/0/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_config.bash b/paludis/repositories/e/ebuild/0/pkg_config.bash
index c8160a6b1..efb9a35e8 100644
--- a/paludis/repositories/e/ebuild/0/pkg_config.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_config.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_info.bash b/paludis/repositories/e/ebuild/0/pkg_info.bash
index 1990df624..bd707681a 100644
--- a/paludis/repositories/e/ebuild/0/pkg_info.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_info.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_nofetch.bash b/paludis/repositories/e/ebuild/0/pkg_nofetch.bash
index ed6976a2a..5e4e4fb5b 100644
--- a/paludis/repositories/e/ebuild/0/pkg_nofetch.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_nofetch.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_postinst.bash b/paludis/repositories/e/ebuild/0/pkg_postinst.bash
index 3fe06e819..989460ca7 100644
--- a/paludis/repositories/e/ebuild/0/pkg_postinst.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_postinst.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_postrm.bash b/paludis/repositories/e/ebuild/0/pkg_postrm.bash
index d027ec85f..7fa8e5bb1 100644
--- a/paludis/repositories/e/ebuild/0/pkg_postrm.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_postrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_preinst.bash b/paludis/repositories/e/ebuild/0/pkg_preinst.bash
index 5bfb42729..81961293d 100644
--- a/paludis/repositories/e/ebuild/0/pkg_preinst.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_preinst.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_prerm.bash b/paludis/repositories/e/ebuild/0/pkg_prerm.bash
index 8f2824aaf..a4d0b13a9 100644
--- a/paludis/repositories/e/ebuild/0/pkg_prerm.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_prerm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_pretend.bash b/paludis/repositories/e/ebuild/0/pkg_pretend.bash
index cd5a4c90e..b2264f0a9 100644
--- a/paludis/repositories/e/ebuild/0/pkg_pretend.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_pretend.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/pkg_setup.bash b/paludis/repositories/e/ebuild/0/pkg_setup.bash
index f5fabae3f..22eece806 100644
--- a/paludis/repositories/e/ebuild/0/pkg_setup.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_setup.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/portage_stubs.bash b/paludis/repositories/e/ebuild/0/portage_stubs.bash
index 0896d6f2f..7c8745d3f 100644
--- a/paludis/repositories/e/ebuild/0/portage_stubs.bash
+++ b/paludis/repositories/e/ebuild/0/portage_stubs.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/src_compile.bash b/paludis/repositories/e/ebuild/0/src_compile.bash
index ec8aff162..b48a70182 100644
--- a/paludis/repositories/e/ebuild/0/src_compile.bash
+++ b/paludis/repositories/e/ebuild/0/src_compile.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/src_install.bash b/paludis/repositories/e/ebuild/0/src_install.bash
index 50baf67c0..1939c509b 100644
--- a/paludis/repositories/e/ebuild/0/src_install.bash
+++ b/paludis/repositories/e/ebuild/0/src_install.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/src_test.bash b/paludis/repositories/e/ebuild/0/src_test.bash
index 37aeeb625..53a96488e 100644
--- a/paludis/repositories/e/ebuild/0/src_test.bash
+++ b/paludis/repositories/e/ebuild/0/src_test.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/0/src_unpack.bash b/paludis/repositories/e/ebuild/0/src_unpack.bash
index 5cc8831dc..7128d1621 100644
--- a/paludis/repositories/e/ebuild/0/src_unpack.bash
+++ b/paludis/repositories/e/ebuild/0/src_unpack.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/1/output_functions.bash b/paludis/repositories/e/ebuild/1/output_functions.bash
index ffadb1a1d..47e20c15d 100644
--- a/paludis/repositories/e/ebuild/1/output_functions.bash
+++ b/paludis/repositories/e/ebuild/1/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/1/src_compile.bash b/paludis/repositories/e/ebuild/1/src_compile.bash
index 33c2ab7ec..e1a17070c 100644
--- a/paludis/repositories/e/ebuild/1/src_compile.bash
+++ b/paludis/repositories/e/ebuild/1/src_compile.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/binary_functions.bash b/paludis/repositories/e/ebuild/binary_functions.bash
index f1150ae1e..899198bef 100644
--- a/paludis/repositories/e/ebuild/binary_functions.bash
+++ b/paludis/repositories/e/ebuild/binary_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/die_functions.bash b/paludis/repositories/e/ebuild/die_functions.bash
index 1a46bbcd5..4888a281d 100644
--- a/paludis/repositories/e/ebuild/die_functions.bash
+++ b/paludis/repositories/e/ebuild/die_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index 7cec38ce4..78a00ee05 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/build_functions.bash b/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
index 7fb443b84..7a01ace38 100644
--- a/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
index b0f48e229..756626a2f 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
index 909d5f0f6..9ac285c5e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
index 8f8232231..120a5e0c7 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
index e13c6a657..2abd465c8 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
index 39ee4f748..744531dc7 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
index fe4c4b67d..90219f2ba 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
index 15f57fd80..26ea51d8b 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
index 93f5cd12b..322ce9ab5 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_metadata.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_metadata.bash
index 4201c97aa..819b3fb56 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_metadata.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_metadata.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
index c98e39747..6d373ce57 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
index 80c0f9ea1..6c2ea39fe 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
index 482a4f8c9..84663532a 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
index 881cb8f9f..e3757880e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_variable.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_variable.bash
index d7f668d16..00cae2115 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_variable.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_variable.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash b/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
index cf26fdec6..4f6642fbf 100755
--- a/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/conditional_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/conditional_functions_TEST.bash b/paludis/repositories/e/ebuild/exheres-0/conditional_functions_TEST.bash
index 91874ee0a..7eea6d19a 100644
--- a/paludis/repositories/e/ebuild/exheres-0/conditional_functions_TEST.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/conditional_functions_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/eclass_functions.bash b/paludis/repositories/e/ebuild/exheres-0/eclass_functions.bash
index fa6d6ef10..67d8fad8e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/eclass_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/eclass_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
index fe2f3f9ae..af4bbdb1e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
index 2132b4b54..340838c47 100644
--- a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/list_functions.bash b/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
index d9f72a073..d22c90f6c 100644
--- a/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/list_functions_TEST.bash b/paludis/repositories/e/ebuild/exheres-0/list_functions_TEST.bash
index 2315b8e37..bb7c09ed2 100644
--- a/paludis/repositories/e/ebuild/exheres-0/list_functions_TEST.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/list_functions_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/output_functions.bash b/paludis/repositories/e/ebuild/exheres-0/output_functions.bash
index 4d44fe0f8..2fd560a43 100644
--- a/paludis/repositories/e/ebuild/exheres-0/output_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
index 3a03225da..bd1322057 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
index 9b67bc1b8..5f62426d1 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_nofetch.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_nofetch.bash
index 6b6f6845b..5091b6ba7 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_nofetch.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_nofetch.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
index f1c67f414..896afb606 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
index 5bd40494e..503a82352 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
index bb8fc9720..b01cd81e9 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
index 47a3c33ee..30e373c11 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
index e78158be5..0fc76a295 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
index 1e0bd0f0b..7978153ec 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash b/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
index 9f0ba6ee2..e017abc22 100755
--- a/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_compile.bash b/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
index e00df265a..efe3c612e 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_configure.bash b/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
index 3736ca6cc..01feb06b4 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_install.bash b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
index 6237b2f1c..cc0770607 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_install.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash b/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
index ad396536c..8d6bc4403 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_test.bash b/paludis/repositories/e/ebuild/exheres-0/src_test.bash
index 4fc0d7f9b..b5c97dbe6 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_test.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_test.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash b/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
index 15e01d64c..05475fdf5 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/install_functions.bash b/paludis/repositories/e/ebuild/install_functions.bash
index acfed9991..3e343fbef 100644
--- a/paludis/repositories/e/ebuild/install_functions.bash
+++ b/paludis/repositories/e/ebuild/install_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/kdebuild-1/output_functions.bash b/paludis/repositories/e/ebuild/kdebuild-1/output_functions.bash
index aca373934..e3415593e 100644
--- a/paludis/repositories/e/ebuild/kdebuild-1/output_functions.bash
+++ b/paludis/repositories/e/ebuild/kdebuild-1/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/kernel_functions.bash b/paludis/repositories/e/ebuild/kernel_functions.bash
index 9cf8724c5..360efa054 100644
--- a/paludis/repositories/e/ebuild/kernel_functions.bash
+++ b/paludis/repositories/e/ebuild/kernel_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/kernel_functions_TEST.bash b/paludis/repositories/e/ebuild/kernel_functions_TEST.bash
index 503b6f258..928cd2801 100644
--- a/paludis/repositories/e/ebuild/kernel_functions_TEST.bash
+++ b/paludis/repositories/e/ebuild/kernel_functions_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/multilib_functions.bash b/paludis/repositories/e/ebuild/multilib_functions.bash
index febcb1108..52afab590 100644
--- a/paludis/repositories/e/ebuild/multilib_functions.bash
+++ b/paludis/repositories/e/ebuild/multilib_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/output_functions.bash b/paludis/repositories/e/ebuild/output_functions.bash
index e22fde41c..b6cee47b9 100644
--- a/paludis/repositories/e/ebuild/output_functions.bash
+++ b/paludis/repositories/e/ebuild/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/paludis-1/output_functions.bash b/paludis/repositories/e/ebuild/paludis-1/output_functions.bash
index 51aa1fe0c..8debf77a1 100644
--- a/paludis/repositories/e/ebuild/paludis-1/output_functions.bash
+++ b/paludis/repositories/e/ebuild/paludis-1/output_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash b/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
index 790670275..37b8ed017 100644
--- a/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
+++ b/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash b/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
index 7d17ac3c4..bf550a990 100644
--- a/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
+++ b/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/pipe_functions.bash b/paludis/repositories/e/ebuild/pipe_functions.bash
index 6403e64e7..22ead7f35 100755
--- a/paludis/repositories/e/ebuild/pipe_functions.bash
+++ b/paludis/repositories/e/ebuild/pipe_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/run_test.bash b/paludis/repositories/e/ebuild/run_test.bash
index f230ec1a7..2dfa3df30 100755
--- a/paludis/repositories/e/ebuild/run_test.bash
+++ b/paludis/repositories/e/ebuild/run_test.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
shopt -s expand_aliases
diff --git a/paludis/repositories/e/ebuild/sandbox.bash b/paludis/repositories/e/ebuild/sandbox.bash
index 9a36a2850..c9036c34c 100644
--- a/paludis/repositories/e/ebuild/sandbox.bash
+++ b/paludis/repositories/e/ebuild/sandbox.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/source_functions.bash b/paludis/repositories/e/ebuild/source_functions.bash
index b54c71c86..cf4ce16b7 100755
--- a/paludis/repositories/e/ebuild/source_functions.bash
+++ b/paludis/repositories/e/ebuild/source_functions.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 David Leverton
diff --git a/paludis/repositories/e/ebuild/usage_error.bash b/paludis/repositories/e/ebuild/usage_error.bash
index 417217782..8f879cff0 100644
--- a/paludis/repositories/e/ebuild/usage_error.bash
+++ b/paludis/repositories/e/ebuild/usage_error.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/awk b/paludis/repositories/e/ebuild/utils/awk
index f7dc58397..54f1daa30 100755
--- a/paludis/repositories/e/ebuild/utils/awk
+++ b/paludis/repositories/e/ebuild/utils/awk
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if /bin/awk --version &>/dev/null ; then
/bin/awk "$@"
diff --git a/paludis/repositories/e/ebuild/utils/awk_TEST.bash b/paludis/repositories/e/ebuild/utils/awk_TEST.bash
index 5c69862ba..223710d1d 100644
--- a/paludis/repositories/e/ebuild/utils/awk_TEST.bash
+++ b/paludis/repositories/e/ebuild/utils/awk_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/canonicalise b/paludis/repositories/e/ebuild/utils/canonicalise
index b186eba65..8aafed08d 100755
--- a/paludis/repositories/e/ebuild/utils/canonicalise
+++ b/paludis/repositories/e/ebuild/utils/canonicalise
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
case $(uname -s) in
FreeBSD) realpath "$@" ;;
*) readlink -f "$@" ;;
diff --git a/paludis/repositories/e/ebuild/utils/dobin b/paludis/repositories/e/ebuild/utils/dobin
index 34cbd3a07..d7520a0b1 100755
--- a/paludis/repositories/e/ebuild/utils/dobin
+++ b/paludis/repositories/e/ebuild/utils/dobin
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doconfd b/paludis/repositories/e/ebuild/utils/doconfd
index a46e8be3d..36d824114 100755
--- a/paludis/repositories/e/ebuild/utils/doconfd
+++ b/paludis/repositories/e/ebuild/utils/doconfd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dodir b/paludis/repositories/e/ebuild/utils/dodir
index fca8d9a45..ef2e0f938 100755
--- a/paludis/repositories/e/ebuild/utils/dodir
+++ b/paludis/repositories/e/ebuild/utils/dodir
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dodoc b/paludis/repositories/e/ebuild/utils/dodoc
index 37b7fd2ad..438a5ac49 100755
--- a/paludis/repositories/e/ebuild/utils/dodoc
+++ b/paludis/repositories/e/ebuild/utils/dodoc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doenvd b/paludis/repositories/e/ebuild/utils/doenvd
index 91d26773c..5882bc7cc 100755
--- a/paludis/repositories/e/ebuild/utils/doenvd
+++ b/paludis/repositories/e/ebuild/utils/doenvd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doexe b/paludis/repositories/e/ebuild/utils/doexe
index e3f320755..92723cfd5 100755
--- a/paludis/repositories/e/ebuild/utils/doexe
+++ b/paludis/repositories/e/ebuild/utils/doexe
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dohard b/paludis/repositories/e/ebuild/utils/dohard
index 707bc32c6..27b7dc0df 100755
--- a/paludis/repositories/e/ebuild/utils/dohard
+++ b/paludis/repositories/e/ebuild/utils/dohard
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index 2baf68134..5e439cea1 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doinfo b/paludis/repositories/e/ebuild/utils/doinfo
index 223f61e1b..261a20c59 100755
--- a/paludis/repositories/e/ebuild/utils/doinfo
+++ b/paludis/repositories/e/ebuild/utils/doinfo
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doinitd b/paludis/repositories/e/ebuild/utils/doinitd
index 3e9904dae..d7535727f 100755
--- a/paludis/repositories/e/ebuild/utils/doinitd
+++ b/paludis/repositories/e/ebuild/utils/doinitd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doins b/paludis/repositories/e/ebuild/utils/doins
index 6de34f8f2..df2318bc3 100755
--- a/paludis/repositories/e/ebuild/utils/doins
+++ b/paludis/repositories/e/ebuild/utils/doins
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dolib b/paludis/repositories/e/ebuild/utils/dolib
index 0fed548fb..89b56caf8 100755
--- a/paludis/repositories/e/ebuild/utils/dolib
+++ b/paludis/repositories/e/ebuild/utils/dolib
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dolib.a b/paludis/repositories/e/ebuild/utils/dolib.a
index abb2fef8e..9a0d2906d 100755
--- a/paludis/repositories/e/ebuild/utils/dolib.a
+++ b/paludis/repositories/e/ebuild/utils/dolib.a
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dolib.so b/paludis/repositories/e/ebuild/utils/dolib.so
index dc324a07a..67fb84ae2 100755
--- a/paludis/repositories/e/ebuild/utils/dolib.so
+++ b/paludis/repositories/e/ebuild/utils/dolib.so
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/doman b/paludis/repositories/e/ebuild/utils/doman
index 18e46d309..7ffefca5e 100755
--- a/paludis/repositories/e/ebuild/utils/doman
+++ b/paludis/repositories/e/ebuild/utils/doman
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/domo b/paludis/repositories/e/ebuild/utils/domo
index fe3d57c07..d6ead2c8c 100755
--- a/paludis/repositories/e/ebuild/utils/domo
+++ b/paludis/repositories/e/ebuild/utils/domo
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/donewins b/paludis/repositories/e/ebuild/utils/donewins
index 9428526cf..92e38bd28 100755
--- a/paludis/repositories/e/ebuild/utils/donewins
+++ b/paludis/repositories/e/ebuild/utils/donewins
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dosbin b/paludis/repositories/e/ebuild/utils/dosbin
index 3ce589cd1..92df659c8 100755
--- a/paludis/repositories/e/ebuild/utils/dosbin
+++ b/paludis/repositories/e/ebuild/utils/dosbin
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dosed b/paludis/repositories/e/ebuild/utils/dosed
index e387bb424..70e877e08 100755
--- a/paludis/repositories/e/ebuild/utils/dosed
+++ b/paludis/repositories/e/ebuild/utils/dosed
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/dosym b/paludis/repositories/e/ebuild/utils/dosym
index 5ffb7bb67..edff1b6ad 100755
--- a/paludis/repositories/e/ebuild/utils/dosym
+++ b/paludis/repositories/e/ebuild/utils/dosym
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/ecompress b/paludis/repositories/e/ebuild/utils/ecompress
index 96a60470c..35959448e 100755
--- a/paludis/repositories/e/ebuild/utils/ecompress
+++ b/paludis/repositories/e/ebuild/utils/ecompress
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 David Leverton
diff --git a/paludis/repositories/e/ebuild/utils/ecompressdir b/paludis/repositories/e/ebuild/utils/ecompressdir
index 1e0734a54..04a1d587e 100755
--- a/paludis/repositories/e/ebuild/utils/ecompressdir
+++ b/paludis/repositories/e/ebuild/utils/ecompressdir
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 David Leverton
diff --git a/paludis/repositories/e/ebuild/utils/emake b/paludis/repositories/e/ebuild/utils/emake
index 55e0d2c78..43fb80484 100755
--- a/paludis/repositories/e/ebuild/utils/emake
+++ b/paludis/repositories/e/ebuild/utils/emake
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0 b/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
index e888259c5..dcf2488a6 100755
--- a/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
+++ b/paludis/repositories/e/ebuild/utils/exheres-0/banned_in_eapi_exheres-0
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/exheres-0/nonfatal b/paludis/repositories/e/ebuild/utils/exheres-0/nonfatal
index 28167cb63..e66669454 100755
--- a/paludis/repositories/e/ebuild/utils/exheres-0/nonfatal
+++ b/paludis/repositories/e/ebuild/utils/exheres-0/nonfatal
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2008 Bo ├śrsted Andresen
diff --git a/paludis/repositories/e/ebuild/utils/fowners b/paludis/repositories/e/ebuild/utils/fowners
index 7f450a220..716ff5299 100755
--- a/paludis/repositories/e/ebuild/utils/fowners
+++ b/paludis/repositories/e/ebuild/utils/fowners
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/fperms b/paludis/repositories/e/ebuild/utils/fperms
index 072270486..ed065e630 100755
--- a/paludis/repositories/e/ebuild/utils/fperms
+++ b/paludis/repositories/e/ebuild/utils/fperms
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1 b/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1
index a987d4e18..2504c7f76 100644
--- a/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1
+++ b/paludis/repositories/e/ebuild/utils/kdebuild-1/banned_in_eapi_kdebuild-1
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/make b/paludis/repositories/e/ebuild/utils/make
index 5006f6910..e121e6acb 100755
--- a/paludis/repositories/e/ebuild/utils/make
+++ b/paludis/repositories/e/ebuild/utils/make
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if /bin/make --version &>/dev/null ; then
/bin/make "$@"
diff --git a/paludis/repositories/e/ebuild/utils/make_TEST.bash b/paludis/repositories/e/ebuild/utils/make_TEST.bash
index a3526181a..259db3829 100644
--- a/paludis/repositories/e/ebuild/utils/make_TEST.bash
+++ b/paludis/repositories/e/ebuild/utils/make_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/newbin b/paludis/repositories/e/ebuild/utils/newbin
index 78e974101..6bfdca227 100755
--- a/paludis/repositories/e/ebuild/utils/newbin
+++ b/paludis/repositories/e/ebuild/utils/newbin
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newconfd b/paludis/repositories/e/ebuild/utils/newconfd
index 7ddb13f6d..49bf0e5ad 100755
--- a/paludis/repositories/e/ebuild/utils/newconfd
+++ b/paludis/repositories/e/ebuild/utils/newconfd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newdoc b/paludis/repositories/e/ebuild/utils/newdoc
index 694e3b6cf..1264682cd 100755
--- a/paludis/repositories/e/ebuild/utils/newdoc
+++ b/paludis/repositories/e/ebuild/utils/newdoc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newenvd b/paludis/repositories/e/ebuild/utils/newenvd
index 57c29bc01..3738f1b45 100755
--- a/paludis/repositories/e/ebuild/utils/newenvd
+++ b/paludis/repositories/e/ebuild/utils/newenvd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newexe b/paludis/repositories/e/ebuild/utils/newexe
index 358408871..55fa65d18 100755
--- a/paludis/repositories/e/ebuild/utils/newexe
+++ b/paludis/repositories/e/ebuild/utils/newexe
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newinitd b/paludis/repositories/e/ebuild/utils/newinitd
index 7322aeeac..8d54e5fc6 100755
--- a/paludis/repositories/e/ebuild/utils/newinitd
+++ b/paludis/repositories/e/ebuild/utils/newinitd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newins b/paludis/repositories/e/ebuild/utils/newins
index b87555cf7..e220bcc78 100755
--- a/paludis/repositories/e/ebuild/utils/newins
+++ b/paludis/repositories/e/ebuild/utils/newins
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newlib.a b/paludis/repositories/e/ebuild/utils/newlib.a
index f72335575..4d5f16369 100755
--- a/paludis/repositories/e/ebuild/utils/newlib.a
+++ b/paludis/repositories/e/ebuild/utils/newlib.a
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newlib.so b/paludis/repositories/e/ebuild/utils/newlib.so
index 8be5491d8..4f4bdf4d9 100755
--- a/paludis/repositories/e/ebuild/utils/newlib.so
+++ b/paludis/repositories/e/ebuild/utils/newlib.so
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newman b/paludis/repositories/e/ebuild/utils/newman
index 99721dbd0..48519f41c 100755
--- a/paludis/repositories/e/ebuild/utils/newman
+++ b/paludis/repositories/e/ebuild/utils/newman
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/newsbin b/paludis/repositories/e/ebuild/utils/newsbin
index 9aad1bbdf..7dd0a2d24 100755
--- a/paludis/repositories/e/ebuild/utils/newsbin
+++ b/paludis/repositories/e/ebuild/utils/newsbin
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/patch b/paludis/repositories/e/ebuild/utils/patch
index 4b7d8db1f..38d9729d7 100755
--- a/paludis/repositories/e/ebuild/utils/patch
+++ b/paludis/repositories/e/ebuild/utils/patch
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if /bin/patch -g0 </dev/null &>/dev/null ; then
/bin/patch "$@"
diff --git a/paludis/repositories/e/ebuild/utils/patch_TEST.bash b/paludis/repositories/e/ebuild/utils/patch_TEST.bash
index 073b1d04d..ae95a9918 100644
--- a/paludis/repositories/e/ebuild/utils/patch_TEST.bash
+++ b/paludis/repositories/e/ebuild/utils/patch_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/prep.in b/paludis/repositories/e/ebuild/utils/prep.in
index 2bc94f3ca..cb6a5cba2 100755
--- a/paludis/repositories/e/ebuild/utils/prep.in
+++ b/paludis/repositories/e/ebuild/utils/prep.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
diff --git a/paludis/repositories/e/ebuild/utils/run_test.bash b/paludis/repositories/e/ebuild/utils/run_test.bash
index 1f9db4e38..186a9fcc2 100644
--- a/paludis/repositories/e/ebuild/utils/run_test.bash
+++ b/paludis/repositories/e/ebuild/utils/run_test.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
shopt -s expand_aliases
diff --git a/paludis/repositories/e/ebuild/utils/sed b/paludis/repositories/e/ebuild/utils/sed
index 4ddac2437..eb04b14ca 100755
--- a/paludis/repositories/e/ebuild/utils/sed
+++ b/paludis/repositories/e/ebuild/utils/sed
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if /bin/sed --version &>/dev/null ; then
/bin/sed "$@"
diff --git a/paludis/repositories/e/ebuild/utils/sed_TEST.bash b/paludis/repositories/e/ebuild/utils/sed_TEST.bash
index 200ee4495..2ff6b6665 100644
--- a/paludis/repositories/e/ebuild/utils/sed_TEST.bash
+++ b/paludis/repositories/e/ebuild/utils/sed_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/unpack b/paludis/repositories/e/ebuild/utils/unpack
index 94da79153..7f6031006 100755
--- a/paludis/repositories/e/ebuild/utils/unpack
+++ b/paludis/repositories/e/ebuild/utils/unpack
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/wrapped_getfsize b/paludis/repositories/e/ebuild/utils/wrapped_getfsize
index 6bbc449a0..dcb677198 100755
--- a/paludis/repositories/e/ebuild/utils/wrapped_getfsize
+++ b/paludis/repositories/e/ebuild/utils/wrapped_getfsize
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
case $(uname -s) in
FreeBSD)
stat -f '%z' "$@"
diff --git a/paludis/repositories/e/ebuild/utils/wrapped_getfsize_TEST.bash b/paludis/repositories/e/ebuild/utils/wrapped_getfsize_TEST.bash
index e43210249..6deb6d700 100755
--- a/paludis/repositories/e/ebuild/utils/wrapped_getfsize_TEST.bash
+++ b/paludis/repositories/e/ebuild/utils/wrapped_getfsize_TEST.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/utils/wrapped_getmtime b/paludis/repositories/e/ebuild/utils/wrapped_getmtime
index e2616dea4..d907c832d 100755
--- a/paludis/repositories/e/ebuild/utils/wrapped_getmtime
+++ b/paludis/repositories/e/ebuild/utils/wrapped_getmtime
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
case $(uname -s) in
FreeBSD)
diff --git a/paludis/repositories/e/ebuild/utils/wrapped_ldconfig b/paludis/repositories/e/ebuild/utils/wrapped_ldconfig
index ecb53eb81..594fea7d5 100755
--- a/paludis/repositories/e/ebuild/utils/wrapped_ldconfig
+++ b/paludis/repositories/e/ebuild/utils/wrapped_ldconfig
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
case $(uname -s) in
FreeBSD)
diff --git a/paludis/repositories/e/ebuild/write_binary_ebuild.bash b/paludis/repositories/e/ebuild/write_binary_ebuild.bash
index 8d3e9810b..7614193f5 100644
--- a/paludis/repositories/e/ebuild/write_binary_ebuild.bash
+++ b/paludis/repositories/e/ebuild/write_binary_ebuild.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/ebuild/write_vdb_entry.bash b/paludis/repositories/e/ebuild/write_vdb_entry.bash
index 82c6f6473..0a3871cee 100755
--- a/paludis/repositories/e/ebuild/write_vdb_entry.bash
+++ b/paludis/repositories/e/ebuild/write_vdb_entry.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
diff --git a/paludis/repositories/e/exndbam_repository.sr b/paludis/repositories/e/exndbam_repository.sr
index 5f1d6fe0f..84ba50eac 100644
--- a/paludis/repositories/e/exndbam_repository.sr
+++ b/paludis/repositories/e/exndbam_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_ExndbamRepositoryParams()
diff --git a/paludis/repositories/e/exndbam_repository_TEST_cleanup.sh b/paludis/repositories/e/exndbam_repository_TEST_cleanup.sh
index 790816fc0..b30004ae8 100755
--- a/paludis/repositories/e/exndbam_repository_TEST_cleanup.sh
+++ b/paludis/repositories/e/exndbam_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d exndbam_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/e/exndbam_repository_TEST_setup.sh b/paludis/repositories/e/exndbam_repository_TEST_setup.sh
index 7b4fd2576..e3442ce08 100755
--- a/paludis/repositories/e/exndbam_repository_TEST_setup.sh
+++ b/paludis/repositories/e/exndbam_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir -p exndbam_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/e/fetch_visitor_TEST_cleanup.sh b/paludis/repositories/e/fetch_visitor_TEST_cleanup.sh
index d9f826c4d..8dfc462ac 100755
--- a/paludis/repositories/e/fetch_visitor_TEST_cleanup.sh
+++ b/paludis/repositories/e/fetch_visitor_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d fetch_visitor_TEST_dir ] ; then
diff --git a/paludis/repositories/e/fetch_visitor_TEST_setup.sh b/paludis/repositories/e/fetch_visitor_TEST_setup.sh
index 14e2b70ad..b11b015ce 100755
--- a/paludis/repositories/e/fetch_visitor_TEST_setup.sh
+++ b/paludis/repositories/e/fetch_visitor_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir fetch_visitor_TEST_dir || exit 1
diff --git a/paludis/repositories/e/manifest2_entry.sr b/paludis/repositories/e/manifest2_entry.sr
index 3d591fa72..28fca2210 100644
--- a/paludis/repositories/e/manifest2_entry.sr
+++ b/paludis/repositories/e/manifest2_entry.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_Manifest2Entry()
diff --git a/paludis/repositories/e/qa/manifest_TEST_cleanup.sh b/paludis/repositories/e/qa/manifest_TEST_cleanup.sh
index 9f086067f..c361b7c71 100755
--- a/paludis/repositories/e/qa/manifest_TEST_cleanup.sh
+++ b/paludis/repositories/e/qa/manifest_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d manifest_TEST_dir ] ; then
diff --git a/paludis/repositories/e/qa/manifest_TEST_setup.sh b/paludis/repositories/e/qa/manifest_TEST_setup.sh
index 2033a6f9e..c1135b720 100755
--- a/paludis/repositories/e/qa/manifest_TEST_setup.sh
+++ b/paludis/repositories/e/qa/manifest_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir -p manifest_TEST_dir/repo1 || exit 2
diff --git a/paludis/repositories/e/qa/misc_files_TEST_cleanup.sh b/paludis/repositories/e/qa/misc_files_TEST_cleanup.sh
index 41afeacf6..641b8e379 100755
--- a/paludis/repositories/e/qa/misc_files_TEST_cleanup.sh
+++ b/paludis/repositories/e/qa/misc_files_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d misc_files_TEST_dir ] ; then
diff --git a/paludis/repositories/e/qa/misc_files_TEST_setup.sh b/paludis/repositories/e/qa/misc_files_TEST_setup.sh
index ed3fb92b4..2cd5596ee 100755
--- a/paludis/repositories/e/qa/misc_files_TEST_setup.sh
+++ b/paludis/repositories/e/qa/misc_files_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir misc_files_TEST_dir || exit 2
diff --git a/paludis/repositories/e/qa/visibility_TEST_cleanup.sh b/paludis/repositories/e/qa/visibility_TEST_cleanup.sh
index acda8e202..26b426a4a 100755
--- a/paludis/repositories/e/qa/visibility_TEST_cleanup.sh
+++ b/paludis/repositories/e/qa/visibility_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d visibility_TEST_dir ] ; then
diff --git a/paludis/repositories/e/qa/visibility_TEST_setup.sh b/paludis/repositories/e/qa/visibility_TEST_setup.sh
index 7af3abbc9..6eb07241f 100755
--- a/paludis/repositories/e/qa/visibility_TEST_setup.sh
+++ b/paludis/repositories/e/qa/visibility_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir visibility_TEST_dir || exit 1
diff --git a/paludis/repositories/e/vdb_merger_TEST_cleanup.sh b/paludis/repositories/e/vdb_merger_TEST_cleanup.sh
index 139f9fa4d..801c8f114 100755
--- a/paludis/repositories/e/vdb_merger_TEST_cleanup.sh
+++ b/paludis/repositories/e/vdb_merger_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d vdb_merger_TEST_dir ] ; then
diff --git a/paludis/repositories/e/vdb_merger_TEST_setup.sh b/paludis/repositories/e/vdb_merger_TEST_setup.sh
index f49dfa8b8..0ffa2f148 100755
--- a/paludis/repositories/e/vdb_merger_TEST_setup.sh
+++ b/paludis/repositories/e/vdb_merger_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir vdb_merger_TEST_dir || exit 2
diff --git a/paludis/repositories/e/vdb_repository.sr b/paludis/repositories/e/vdb_repository.sr
index f18fe1391..c687a0d01 100644
--- a/paludis/repositories/e/vdb_repository.sr
+++ b/paludis/repositories/e/vdb_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_VDBRepositoryParams()
diff --git a/paludis/repositories/e/vdb_repository_TEST_cleanup.sh b/paludis/repositories/e/vdb_repository_TEST_cleanup.sh
index e9f03a6b0..373e86d30 100755
--- a/paludis/repositories/e/vdb_repository_TEST_cleanup.sh
+++ b/paludis/repositories/e/vdb_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d vdb_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/e/vdb_repository_TEST_setup.sh b/paludis/repositories/e/vdb_repository_TEST_setup.sh
index f6978d747..fc93fe69a 100755
--- a/paludis/repositories/e/vdb_repository_TEST_setup.sh
+++ b/paludis/repositories/e/vdb_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir -p vdb_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/e/vdb_unmerger_TEST_cleanup.sh b/paludis/repositories/e/vdb_unmerger_TEST_cleanup.sh
index 16dea1874..db098167e 100755
--- a/paludis/repositories/e/vdb_unmerger_TEST_cleanup.sh
+++ b/paludis/repositories/e/vdb_unmerger_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d vdb_unmerger_TEST_dir ] ; then
diff --git a/paludis/repositories/e/vdb_unmerger_TEST_setup.sh b/paludis/repositories/e/vdb_unmerger_TEST_setup.sh
index 013441b58..c9fba882d 100755
--- a/paludis/repositories/e/vdb_unmerger_TEST_setup.sh
+++ b/paludis/repositories/e/vdb_unmerger_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir vdb_unmerger_TEST_dir || exit 2
diff --git a/paludis/repositories/e/xml_things_TEST_cleanup.sh b/paludis/repositories/e/xml_things_TEST_cleanup.sh
index 5e0843fa2..dcb24d415 100755
--- a/paludis/repositories/e/xml_things_TEST_cleanup.sh
+++ b/paludis/repositories/e/xml_things_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d xml_things_TEST_dir ] ; then
diff --git a/paludis/repositories/e/xml_things_TEST_setup.sh b/paludis/repositories/e/xml_things_TEST_setup.sh
index 530af804b..1360e4ed0 100755
--- a/paludis/repositories/e/xml_things_TEST_setup.sh
+++ b/paludis/repositories/e/xml_things_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir xml_things_TEST_dir || exit 1
diff --git a/paludis/repositories/gems/gems.bash b/paludis/repositories/gems/gems.bash
index 302241aad..51d18b321 100755
--- a/paludis/repositories/gems/gems.bash
+++ b/paludis/repositories/gems/gems.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Copyright (c) 2007 Ciaran McCreesh
diff --git a/paludis/repositories/gems/gems_repository_TEST_cleanup.sh b/paludis/repositories/gems/gems_repository_TEST_cleanup.sh
index 5d20e5c2b..925666ca6 100755
--- a/paludis/repositories/gems/gems_repository_TEST_cleanup.sh
+++ b/paludis/repositories/gems/gems_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d gems_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/gems/gems_repository_TEST_setup.sh b/paludis/repositories/gems/gems_repository_TEST_setup.sh
index bbe7b9879..b309e871a 100755
--- a/paludis/repositories/gems/gems_repository_TEST_setup.sh
+++ b/paludis/repositories/gems/gems_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir gems_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/gems/installed_gems_repository_TEST_cleanup.sh b/paludis/repositories/gems/installed_gems_repository_TEST_cleanup.sh
index 2d8baec44..8b7590043 100755
--- a/paludis/repositories/gems/installed_gems_repository_TEST_cleanup.sh
+++ b/paludis/repositories/gems/installed_gems_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d installed_gems_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/gems/installed_gems_repository_TEST_setup.sh b/paludis/repositories/gems/installed_gems_repository_TEST_setup.sh
index 4edf8ac08..a99ca927f 100755
--- a/paludis/repositories/gems/installed_gems_repository_TEST_setup.sh
+++ b/paludis/repositories/gems/installed_gems_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir installed_gems_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/gems/params.sr b/paludis/repositories/gems/params.sr
index f4c4ede6a..29677854e 100644
--- a/paludis/repositories/gems/params.sr
+++ b/paludis/repositories/gems/params.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_RepositoryParams()
diff --git a/paludis/repositories/unavailable/unavailable_repository_TEST_cleanup.sh b/paludis/repositories/unavailable/unavailable_repository_TEST_cleanup.sh
index 93760c08f..506f9ac02 100755
--- a/paludis/repositories/unavailable/unavailable_repository_TEST_cleanup.sh
+++ b/paludis/repositories/unavailable/unavailable_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d unavailable_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/unavailable/unavailable_repository_TEST_setup.sh b/paludis/repositories/unavailable/unavailable_repository_TEST_setup.sh
index ae6501d15..ed18fa784 100755
--- a/paludis/repositories/unavailable/unavailable_repository_TEST_setup.sh
+++ b/paludis/repositories/unavailable/unavailable_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir unavailable_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/unpackaged/installed_repository.sr b/paludis/repositories/unpackaged/installed_repository.sr
index 246cecc07..83ffdf77a 100644
--- a/paludis/repositories/unpackaged/installed_repository.sr
+++ b/paludis/repositories/unpackaged/installed_repository.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_InstalledUnpackagedRepositoryParams()
diff --git a/paludis/repositories/unpackaged/installed_repository_TEST_cleanup.sh b/paludis/repositories/unpackaged/installed_repository_TEST_cleanup.sh
index 66e79f312..ed598a95e 100755
--- a/paludis/repositories/unpackaged/installed_repository_TEST_cleanup.sh
+++ b/paludis/repositories/unpackaged/installed_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d installed_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/unpackaged/installed_repository_TEST_setup.sh b/paludis/repositories/unpackaged/installed_repository_TEST_setup.sh
index 1c8c958fd..c526a5ca7 100755
--- a/paludis/repositories/unpackaged/installed_repository_TEST_setup.sh
+++ b/paludis/repositories/unpackaged/installed_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir installed_repository_TEST_dir || exit 1
diff --git a/paludis/repositories/unpackaged/unpackaged_repository_TEST_cleanup.sh b/paludis/repositories/unpackaged/unpackaged_repository_TEST_cleanup.sh
index b6991d913..f3ef89869 100755
--- a/paludis/repositories/unpackaged/unpackaged_repository_TEST_cleanup.sh
+++ b/paludis/repositories/unpackaged/unpackaged_repository_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d unpackaged_repository_TEST_dir ] ; then
diff --git a/paludis/repositories/unpackaged/unpackaged_repository_TEST_setup.sh b/paludis/repositories/unpackaged/unpackaged_repository_TEST_setup.sh
index 0f2901321..b42feb689 100755
--- a/paludis/repositories/unpackaged/unpackaged_repository_TEST_setup.sh
+++ b/paludis/repositories/unpackaged/unpackaged_repository_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir unpackaged_repository_TEST_dir || exit 1
diff --git a/paludis/repository_name_cache_TEST_cleanup.sh b/paludis/repository_name_cache_TEST_cleanup.sh
index e2bd54245..ae2751870 100755
--- a/paludis/repository_name_cache_TEST_cleanup.sh
+++ b/paludis/repository_name_cache_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d repository_name_cache_TEST_dir ] ; then
diff --git a/paludis/repository_name_cache_TEST_setup.sh b/paludis/repository_name_cache_TEST_setup.sh
index 6252764ff..177123960 100755
--- a/paludis/repository_name_cache_TEST_setup.sh
+++ b/paludis/repository_name_cache_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir repository_name_cache_TEST_dir || exit 1
diff --git a/paludis/set_file.se b/paludis/set_file.se
index 05da791be..805b65a33 100644
--- a/paludis/set_file.se
+++ b/paludis/set_file.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_SetFileType()
diff --git a/paludis/set_file_TEST_cleanup.sh b/paludis/set_file_TEST_cleanup.sh
index d43acb2e2..ae8f66aa2 100755
--- a/paludis/set_file_TEST_cleanup.sh
+++ b/paludis/set_file_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d set_file_TEST_dir ] ; then
diff --git a/paludis/set_file_TEST_setup.sh b/paludis/set_file_TEST_setup.sh
index 5f61f97c5..eb212f69e 100755
--- a/paludis/set_file_TEST_setup.sh
+++ b/paludis/set_file_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir set_file_TEST_dir || exit 2
diff --git a/paludis/stage_options.sr b/paludis/stage_options.sr
index 7d493960e..22d0f75bc 100644
--- a/paludis/stage_options.sr
+++ b/paludis/stage_options.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_StageOptions()
diff --git a/paludis/stripper_TEST_cleanup.sh b/paludis/stripper_TEST_cleanup.sh
index 7d22786df..fa2227881 100755
--- a/paludis/stripper_TEST_cleanup.sh
+++ b/paludis/stripper_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d stripper_TEST_dir ] ; then
diff --git a/paludis/stripper_TEST_setup.sh b/paludis/stripper_TEST_setup.sh
index f53e2f33e..39bd11852 100755
--- a/paludis/stripper_TEST_setup.sh
+++ b/paludis/stripper_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir stripper_TEST_dir || exit 2
diff --git a/paludis/syncers/dobzr.in b/paludis/syncers/dobzr.in
index 0872a9077..5241ba114 100644
--- a/paludis/syncers/dobzr.in
+++ b/paludis/syncers/dobzr.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/docvs.in b/paludis/syncers/docvs.in
index 6b7c98200..6a3a2a140 100644
--- a/paludis/syncers/docvs.in
+++ b/paludis/syncers/docvs.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dodarcs.in b/paludis/syncers/dodarcs.in
index 64bde5123..dd06b5640 100644
--- a/paludis/syncers/dodarcs.in
+++ b/paludis/syncers/dodarcs.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dodummy b/paludis/syncers/dodummy
index 602783f0b..257d62bd4 100644
--- a/paludis/syncers/dodummy
+++ b/paludis/syncers/dodummy
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dogit.in b/paludis/syncers/dogit.in
index 239bed793..e42b52de5 100644
--- a/paludis/syncers/dogit.in
+++ b/paludis/syncers/dogit.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dorsync.in b/paludis/syncers/dorsync.in
index fb2583205..36ca1a9ec 100644
--- a/paludis/syncers/dorsync.in
+++ b/paludis/syncers/dorsync.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dosvn.in b/paludis/syncers/dosvn.in
index 9210e1c38..c4e708b5d 100644
--- a/paludis/syncers/dosvn.in
+++ b/paludis/syncers/dosvn.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/syncers/dotar.in b/paludis/syncers/dotar.in
index 8c12b7b28..45e6f4dfa 100644
--- a/paludis/syncers/dotar.in
+++ b/paludis/syncers/dotar.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
diff --git a/paludis/uninstall_list.se b/paludis/uninstall_list.se
index 2186e31fe..8736eaaee 100644
--- a/paludis/uninstall_list.se
+++ b/paludis/uninstall_list.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_UninstallListEntryKind()
diff --git a/paludis/uninstall_list.sr b/paludis/uninstall_list.sr
index 00c25dcf8..78af01123 100644
--- a/paludis/uninstall_list.sr
+++ b/paludis/uninstall_list.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_UninstallListOptions()
diff --git a/paludis/user_dep_spec.se b/paludis/user_dep_spec.se
index 965c91744..a48f5ba5d 100644
--- a/paludis/user_dep_spec.se
+++ b/paludis/user_dep_spec.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_UserPackageDepSpecOption()
diff --git a/paludis/util/config_file.se b/paludis/util/config_file.se
index 3960c0016..ca139db74 100644
--- a/paludis/util/config_file.se
+++ b/paludis/util/config_file.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_LineConfigFileOption()
diff --git a/paludis/util/config_file_TEST_cleanup.sh b/paludis/util/config_file_TEST_cleanup.sh
index b4ed3dbde..8747b764f 100755
--- a/paludis/util/config_file_TEST_cleanup.sh
+++ b/paludis/util/config_file_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d config_file_TEST_dir ] ; then
diff --git a/paludis/util/config_file_TEST_setup.sh b/paludis/util/config_file_TEST_setup.sh
index fd0bb109c..22b6ec727 100755
--- a/paludis/util/config_file_TEST_setup.sh
+++ b/paludis/util/config_file_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir config_file_TEST_dir || exit 2
diff --git a/paludis/util/dir_iterator.se b/paludis/util/dir_iterator.se
index 00b224601..2d0088ae1 100644
--- a/paludis/util/dir_iterator.se
+++ b/paludis/util/dir_iterator.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_DirIteratorOption()
diff --git a/paludis/util/dir_iterator_TEST_cleanup.sh b/paludis/util/dir_iterator_TEST_cleanup.sh
index 17378f3c1..aeb09097d 100755
--- a/paludis/util/dir_iterator_TEST_cleanup.sh
+++ b/paludis/util/dir_iterator_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d dir_iterator_TEST_dir ] ; then
diff --git a/paludis/util/dir_iterator_TEST_setup.sh b/paludis/util/dir_iterator_TEST_setup.sh
index f741a97c5..15a464171 100755
--- a/paludis/util/dir_iterator_TEST_setup.sh
+++ b/paludis/util/dir_iterator_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir dir_iterator_TEST_dir || exit 2
diff --git a/paludis/util/echo_functions.bash.in b/paludis/util/echo_functions.bash.in
index 24fbba042..ba22e16c9 100644
--- a/paludis/util/echo_functions.bash.in
+++ b/paludis/util/echo_functions.bash.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
@GENERATED_FILE@
diff --git a/paludis/util/fs_entry_TEST_cleanup.sh b/paludis/util/fs_entry_TEST_cleanup.sh
index 662b2bb36..ed04a5598 100755
--- a/paludis/util/fs_entry_TEST_cleanup.sh
+++ b/paludis/util/fs_entry_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d fs_entry_TEST_dir ] ; then
diff --git a/paludis/util/fs_entry_TEST_setup.sh b/paludis/util/fs_entry_TEST_setup.sh
index 26661ddb2..a8efc9a0f 100755
--- a/paludis/util/fs_entry_TEST_setup.sh
+++ b/paludis/util/fs_entry_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir fs_entry_TEST_dir || exit 2
diff --git a/paludis/util/is_file_with_extension.se b/paludis/util/is_file_with_extension.se
index 31f59b1a8..04897162a 100644
--- a/paludis/util/is_file_with_extension.se
+++ b/paludis/util/is_file_with_extension.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_IsFileWithOption()
diff --git a/paludis/util/is_file_with_extension_TEST_cleanup.sh b/paludis/util/is_file_with_extension_TEST_cleanup.sh
index 986933aae..af3ad0158 100755
--- a/paludis/util/is_file_with_extension_TEST_cleanup.sh
+++ b/paludis/util/is_file_with_extension_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -f "is_file_with_extension_TEST_file.goat" ] ; then
diff --git a/paludis/util/is_file_with_extension_TEST_setup.sh b/paludis/util/is_file_with_extension_TEST_setup.sh
index bdfacbf64..22e27b65d 100755
--- a/paludis/util/is_file_with_extension_TEST_setup.sh
+++ b/paludis/util/is_file_with_extension_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
touch is_file_with_extension_TEST_file.goat || exit 2
diff --git a/paludis/util/log.se b/paludis/util/log.se
index 9cf30395e..038d8c173 100644
--- a/paludis/util/log.se
+++ b/paludis/util/log.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_LogContext()
diff --git a/paludis/util/output_wrapper_TEST_cleanup.sh b/paludis/util/output_wrapper_TEST_cleanup.sh
index 48e4dce1d..6110d5cd8 100755
--- a/paludis/util/output_wrapper_TEST_cleanup.sh
+++ b/paludis/util/output_wrapper_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d output_wrapper_TEST_dir ] ; then
diff --git a/paludis/util/output_wrapper_TEST_setup.sh b/paludis/util/output_wrapper_TEST_setup.sh
index 229a74ddd..e7211c356 100755
--- a/paludis/util/output_wrapper_TEST_setup.sh
+++ b/paludis/util/output_wrapper_TEST_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir output_wrapper_TEST_dir || exit 2
diff --git a/paludis/util/system_TEST_cleanup.sh b/paludis/util/system_TEST_cleanup.sh
index 1dca3c3a3..431741500 100755
--- a/paludis/util/system_TEST_cleanup.sh
+++ b/paludis/util/system_TEST_cleanup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
if [ -d system_TEST_dir ] ; then
diff --git a/paludis/util/system_TEST_setup.sh b/paludis/util/system_TEST_setup.sh
index 13ba3f6f0..5bdc42a47 100755
--- a/paludis/util/system_TEST_setup.sh
+++ b/paludis/util/system_TEST_setup.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :
mkdir system_TEST_dir || exit 2
cd system_TEST_dir || exit 3
cat <<'END' > pipe_test.bash
-#!/bin/bash
+#!/usr/bin/env bash
echo "$1" | tr "\n" "\0" 1>&$PALUDIS_PIPE_COMMAND_WRITE_FD
response1=
@@ -27,7 +27,7 @@ exit $response1$response2
END
cat <<'END' > captured_pipe_test.bash
-#!/bin/bash
+#!/usr/bin/env bash
echo "$1" | tr "\n" "\0" 1>&$PALUDIS_PIPE_COMMAND_WRITE_FD
response1=
diff --git a/paludis/version_operator.se b/paludis/version_operator.se
index 78448db23..1ba7250bb 100644
--- a/paludis/version_operator.se
+++ b/paludis/version_operator.se
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :
make_enum_VersionOperatorValue()
diff --git a/paludis/version_requirements.sr b/paludis/version_requirements.sr
index 91a80a272..7c9df2cad 100644
--- a/paludis/version_requirements.sr
+++ b/paludis/version_requirements.sr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
make_class_VersionRequirement()