summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-11-14 00:02:20 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-11-14 00:02:20 +0000
commitbbb9c940637204b6bab8ebfec6ea9da8fb945e22 (patch)
tree665a0bd35da8ec0fd17dbd20230a6e85154b8c2b /qpid/cpp/src
parent4ca59ecbe2d48803a4984a7a059a027314c958b5 (diff)
downloadqpid-python-bbb9c940637204b6bab8ebfec6ea9da8fb945e22.tar.gz
QPID-5336: Don't hardcode location of bash in shell scripts
As bash isn't specified by POSIX its location is variable. Specifically under BSDs it isn't found in /bin/bash. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rwxr-xr-xqpid/cpp/src/check-abi2
-rwxr-xr-xqpid/cpp/src/prof2
-rwxr-xr-xqpid/cpp/src/tests/allhosts2
-rwxr-xr-xqpid/cpp/src/tests/dynamic_log_hires_timestamp2
-rwxr-xr-xqpid/cpp/src/tests/dynamic_log_level_test2
-rwxr-xr-xqpid/cpp/src/tests/fanout_perftest2
-rwxr-xr-xqpid/cpp/src/tests/ipv6_test2
-rw-r--r--qpid/cpp/src/tests/legacystore/clean.sh2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/federation/run_federation_sys_tests2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/federation/run_long_federation_sys_tests2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/jrnl/chk_jdata2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/jrnl/cp_rtest_jrnl2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/jrnl/jhexdump2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/jrnl/prof2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/jrnl/run-journal-tests2
-rw-r--r--qpid/cpp/src/tests/legacystore/run_long_python_tests2
-rwxr-xr-xqpid/cpp/src/tests/legacystore/run_python_tests2
-rw-r--r--qpid/cpp/src/tests/legacystore/run_short_python_tests2
-rw-r--r--qpid/cpp/src/tests/legacystore/system_test.sh2
-rwxr-xr-xqpid/cpp/src/tests/linearstore/linearstoredirsetup.sh2
-rwxr-xr-xqpid/cpp/src/tests/multiq_perftest2
-rwxr-xr-xqpid/cpp/src/tests/perfdist2
-rwxr-xr-xqpid/cpp/src/tests/python_tests2
-rwxr-xr-xqpid/cpp/src/tests/qpid-build-rinstall2
-rwxr-xr-xqpid/cpp/src/tests/qpid-src-rinstall2
-rwxr-xr-xqpid/cpp/src/tests/quick_perftest2
-rwxr-xr-xqpid/cpp/src/tests/quick_topictest2
-rwxr-xr-xqpid/cpp/src/tests/quick_txtest2
-rwxr-xr-xqpid/cpp/src/tests/ring_queue_test2
-rwxr-xr-xqpid/cpp/src/tests/rsynchosts2
-rwxr-xr-xqpid/cpp/src/tests/run_acl_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_cli_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_federation_sys_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_federation_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_ha_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_header_test2
-rwxr-xr-xqpid/cpp/src/tests/run_interlink_tests2
-rw-r--r--qpid/cpp/src/tests/run_long_federation_sys_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_msg_group_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_msg_group_tests_soak2
-rwxr-xr-xqpid/cpp/src/tests/run_paged_queue_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_perftest2
-rwxr-xr-xqpid/cpp/src/tests/run_queue_flow_limit_tests2
-rwxr-xr-xqpid/cpp/src/tests/run_queue_redirect2
-rwxr-xr-xqpid/cpp/src/tests/run_ring_queue_test2
-rwxr-xr-xqpid/cpp/src/tests/run_test2
-rwxr-xr-xqpid/cpp/src/tests/sasl_fed2
-rwxr-xr-xqpid/cpp/src/tests/sasl_fed_ex2
-rwxr-xr-xqpid/cpp/src/tests/sasl_no_dir2
-rwxr-xr-xqpid/cpp/src/tests/sasl_test_setup.sh2
-rwxr-xr-xqpid/cpp/src/tests/shared_perftest2
-rwxr-xr-xqpid/cpp/src/tests/ssl_test2
-rwxr-xr-xqpid/cpp/src/tests/swig_python_tests2
-rw-r--r--qpid/cpp/src/tests/test_env_common.sh2
-rwxr-xr-xqpid/cpp/src/tests/topic_perftest2
-rwxr-xr-xqpid/cpp/src/tests/topictest2
56 files changed, 56 insertions, 56 deletions
diff --git a/qpid/cpp/src/check-abi b/qpid/cpp/src/check-abi
index 2b5d4eda68..55e64e02f5 100755
--- a/qpid/cpp/src/check-abi
+++ b/qpid/cpp/src/check-abi
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# Ask the compiler the implementation specific type for a standard typedeffed type
# (int64_t, size_t etc.). Operates by test compiling and using the demangling ABI call.
diff --git a/qpid/cpp/src/prof b/qpid/cpp/src/prof
index 6276ff620a..fa470f5f84 100755
--- a/qpid/cpp/src/prof
+++ b/qpid/cpp/src/prof
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/allhosts b/qpid/cpp/src/tests/allhosts
index 09946d8c68..07bc04fff5 100755
--- a/qpid/cpp/src/tests/allhosts
+++ b/qpid/cpp/src/tests/allhosts
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/dynamic_log_hires_timestamp b/qpid/cpp/src/tests/dynamic_log_hires_timestamp
index f312b8ba9b..75034f9902 100755
--- a/qpid/cpp/src/tests/dynamic_log_hires_timestamp
+++ b/qpid/cpp/src/tests/dynamic_log_hires_timestamp
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/dynamic_log_level_test b/qpid/cpp/src/tests/dynamic_log_level_test
index 9a9d6c8724..f8fd7a8dd8 100755
--- a/qpid/cpp/src/tests/dynamic_log_level_test
+++ b/qpid/cpp/src/tests/dynamic_log_level_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/fanout_perftest b/qpid/cpp/src/tests/fanout_perftest
index 99ea5b2ecf..168994d372 100755
--- a/qpid/cpp/src/tests/fanout_perftest
+++ b/qpid/cpp/src/tests/fanout_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/ipv6_test b/qpid/cpp/src/tests/ipv6_test
index b7244434b2..4ac5f95fba 100755
--- a/qpid/cpp/src/tests/ipv6_test
+++ b/qpid/cpp/src/tests/ipv6_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/clean.sh b/qpid/cpp/src/tests/legacystore/clean.sh
index efb19586fa..838f246232 100644
--- a/qpid/cpp/src/tests/legacystore/clean.sh
+++ b/qpid/cpp/src/tests/legacystore/clean.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/federation/run_federation_sys_tests b/qpid/cpp/src/tests/legacystore/federation/run_federation_sys_tests
index dff5f12770..776f009c05 100755
--- a/qpid/cpp/src/tests/legacystore/federation/run_federation_sys_tests
+++ b/qpid/cpp/src/tests/legacystore/federation/run_federation_sys_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/legacystore/federation/run_long_federation_sys_tests b/qpid/cpp/src/tests/legacystore/federation/run_long_federation_sys_tests
index d2b8eec32a..012c8d8f18 100755
--- a/qpid/cpp/src/tests/legacystore/federation/run_long_federation_sys_tests
+++ b/qpid/cpp/src/tests/legacystore/federation/run_long_federation_sys_tests
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/legacystore/jrnl/chk_jdata b/qpid/cpp/src/tests/legacystore/jrnl/chk_jdata
index 67b322af59..2ac87d91b9 100755
--- a/qpid/cpp/src/tests/legacystore/jrnl/chk_jdata
+++ b/qpid/cpp/src/tests/legacystore/jrnl/chk_jdata
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/jrnl/cp_rtest_jrnl b/qpid/cpp/src/tests/legacystore/jrnl/cp_rtest_jrnl
index 6d5171ae71..e21f991788 100755
--- a/qpid/cpp/src/tests/legacystore/jrnl/cp_rtest_jrnl
+++ b/qpid/cpp/src/tests/legacystore/jrnl/cp_rtest_jrnl
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/jrnl/jhexdump b/qpid/cpp/src/tests/legacystore/jrnl/jhexdump
index 2d4c8a4afb..b013914441 100755
--- a/qpid/cpp/src/tests/legacystore/jrnl/jhexdump
+++ b/qpid/cpp/src/tests/legacystore/jrnl/jhexdump
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/jrnl/prof b/qpid/cpp/src/tests/legacystore/jrnl/prof
index 6e0e6da0eb..2abe7baa4a 100755
--- a/qpid/cpp/src/tests/legacystore/jrnl/prof
+++ b/qpid/cpp/src/tests/legacystore/jrnl/prof
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/jrnl/run-journal-tests b/qpid/cpp/src/tests/legacystore/jrnl/run-journal-tests
index 5e13967a01..e169e39c60 100755
--- a/qpid/cpp/src/tests/legacystore/jrnl/run-journal-tests
+++ b/qpid/cpp/src/tests/legacystore/jrnl/run-journal-tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/legacystore/run_long_python_tests b/qpid/cpp/src/tests/legacystore/run_long_python_tests
index e43b2236ec..be6380302c 100644
--- a/qpid/cpp/src/tests/legacystore/run_long_python_tests
+++ b/qpid/cpp/src/tests/legacystore/run_long_python_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/legacystore/run_python_tests b/qpid/cpp/src/tests/legacystore/run_python_tests
index 79dbd35da5..c1d04a28a1 100755
--- a/qpid/cpp/src/tests/legacystore/run_python_tests
+++ b/qpid/cpp/src/tests/legacystore/run_python_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/legacystore/run_short_python_tests b/qpid/cpp/src/tests/legacystore/run_short_python_tests
index 523924fdba..9b9e7c59be 100644
--- a/qpid/cpp/src/tests/legacystore/run_short_python_tests
+++ b/qpid/cpp/src/tests/legacystore/run_short_python_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/legacystore/system_test.sh b/qpid/cpp/src/tests/legacystore/system_test.sh
index dbf8902cff..52cecbce8a 100644
--- a/qpid/cpp/src/tests/legacystore/system_test.sh
+++ b/qpid/cpp/src/tests/legacystore/system_test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/linearstore/linearstoredirsetup.sh b/qpid/cpp/src/tests/linearstore/linearstoredirsetup.sh
index b4b8721edd..5e2ca235a1 100755
--- a/qpid/cpp/src/tests/linearstore/linearstoredirsetup.sh
+++ b/qpid/cpp/src/tests/linearstore/linearstoredirsetup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
STORE_DIR=/tmp
LINEARSTOREDIR=~/RedHat/linearstore
diff --git a/qpid/cpp/src/tests/multiq_perftest b/qpid/cpp/src/tests/multiq_perftest
index b8328ac287..9673dd2e6d 100755
--- a/qpid/cpp/src/tests/multiq_perftest
+++ b/qpid/cpp/src/tests/multiq_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/perfdist b/qpid/cpp/src/tests/perfdist
index 59548b23f7..4049b410ff 100755
--- a/qpid/cpp/src/tests/perfdist
+++ b/qpid/cpp/src/tests/perfdist
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/python_tests b/qpid/cpp/src/tests/python_tests
index 3cdf7725f4..babe93c163 100755
--- a/qpid/cpp/src/tests/python_tests
+++ b/qpid/cpp/src/tests/python_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/qpid-build-rinstall b/qpid/cpp/src/tests/qpid-build-rinstall
index c2ee957968..beff7dffba 100755
--- a/qpid/cpp/src/tests/qpid-build-rinstall
+++ b/qpid/cpp/src/tests/qpid-build-rinstall
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under onemake
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/qpid-src-rinstall b/qpid/cpp/src/tests/qpid-src-rinstall
index a8dbefffea..c7473e9197 100755
--- a/qpid/cpp/src/tests/qpid-src-rinstall
+++ b/qpid/cpp/src/tests/qpid-src-rinstall
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under onemake
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/quick_perftest b/qpid/cpp/src/tests/quick_perftest
index 9b6f94746c..698af60324 100755
--- a/qpid/cpp/src/tests/quick_perftest
+++ b/qpid/cpp/src/tests/quick_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/quick_topictest b/qpid/cpp/src/tests/quick_topictest
index e1d5a7d984..e44ec0f477 100755
--- a/qpid/cpp/src/tests/quick_topictest
+++ b/qpid/cpp/src/tests/quick_topictest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/quick_txtest b/qpid/cpp/src/tests/quick_txtest
index 34ecdcd8eb..77e8556f1d 100755
--- a/qpid/cpp/src/tests/quick_txtest
+++ b/qpid/cpp/src/tests/quick_txtest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/ring_queue_test b/qpid/cpp/src/tests/ring_queue_test
index 271b46183e..410ea30eb8 100755
--- a/qpid/cpp/src/tests/ring_queue_test
+++ b/qpid/cpp/src/tests/ring_queue_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/rsynchosts b/qpid/cpp/src/tests/rsynchosts
index 81c9699ac3..10e1081f76 100755
--- a/qpid/cpp/src/tests/rsynchosts
+++ b/qpid/cpp/src/tests/rsynchosts
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under onemake
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/run_acl_tests b/qpid/cpp/src/tests/run_acl_tests
index 64aaf7c516..a6f4fd8cbb 100755
--- a/qpid/cpp/src/tests/run_acl_tests
+++ b/qpid/cpp/src/tests/run_acl_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_cli_tests b/qpid/cpp/src/tests/run_cli_tests
index e9590080a1..1db99001a4 100755
--- a/qpid/cpp/src/tests/run_cli_tests
+++ b/qpid/cpp/src/tests/run_cli_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_federation_sys_tests b/qpid/cpp/src/tests/run_federation_sys_tests
index 46f7b3de59..f5f1ae44d3 100755
--- a/qpid/cpp/src/tests/run_federation_sys_tests
+++ b/qpid/cpp/src/tests/run_federation_sys_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_federation_tests b/qpid/cpp/src/tests/run_federation_tests
index bf33f96ebd..8cadd3702f 100755
--- a/qpid/cpp/src/tests/run_federation_tests
+++ b/qpid/cpp/src/tests/run_federation_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_ha_tests b/qpid/cpp/src/tests/run_ha_tests
index 1a469646c9..bb60bea076 100755
--- a/qpid/cpp/src/tests/run_ha_tests
+++ b/qpid/cpp/src/tests/run_ha_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_header_test b/qpid/cpp/src/tests/run_header_test
index a557ee49e9..48529bf7ff 100755
--- a/qpid/cpp/src/tests/run_header_test
+++ b/qpid/cpp/src/tests/run_header_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_interlink_tests b/qpid/cpp/src/tests/run_interlink_tests
index 6c61bdd654..71482fa7fd 100755
--- a/qpid/cpp/src/tests/run_interlink_tests
+++ b/qpid/cpp/src/tests/run_interlink_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_long_federation_sys_tests b/qpid/cpp/src/tests/run_long_federation_sys_tests
index 69dc08d11c..c2b4e02d81 100644
--- a/qpid/cpp/src/tests/run_long_federation_sys_tests
+++ b/qpid/cpp/src/tests/run_long_federation_sys_tests
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_msg_group_tests b/qpid/cpp/src/tests/run_msg_group_tests
index 4b2332896b..ee479c23c7 100755
--- a/qpid/cpp/src/tests/run_msg_group_tests
+++ b/qpid/cpp/src/tests/run_msg_group_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_msg_group_tests_soak b/qpid/cpp/src/tests/run_msg_group_tests_soak
index 2ebbaf4efd..d87ca16c88 100755
--- a/qpid/cpp/src/tests/run_msg_group_tests_soak
+++ b/qpid/cpp/src/tests/run_msg_group_tests_soak
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_paged_queue_tests b/qpid/cpp/src/tests/run_paged_queue_tests
index 1ccefea716..8f72ddd5b7 100755
--- a/qpid/cpp/src/tests/run_paged_queue_tests
+++ b/qpid/cpp/src/tests/run_paged_queue_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_perftest b/qpid/cpp/src/tests/run_perftest
index 5324c2f0c5..2fadc6cc62 100755
--- a/qpid/cpp/src/tests/run_perftest
+++ b/qpid/cpp/src/tests/run_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_queue_flow_limit_tests b/qpid/cpp/src/tests/run_queue_flow_limit_tests
index 6dbc48098e..55b3e5d4c5 100755
--- a/qpid/cpp/src/tests/run_queue_flow_limit_tests
+++ b/qpid/cpp/src/tests/run_queue_flow_limit_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_queue_redirect b/qpid/cpp/src/tests/run_queue_redirect
index c006fea6d7..3a0ae5118a 100755
--- a/qpid/cpp/src/tests/run_queue_redirect
+++ b/qpid/cpp/src/tests/run_queue_redirect
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_ring_queue_test b/qpid/cpp/src/tests/run_ring_queue_test
index 7ca870841e..69497f9872 100755
--- a/qpid/cpp/src/tests/run_ring_queue_test
+++ b/qpid/cpp/src/tests/run_ring_queue_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/run_test b/qpid/cpp/src/tests/run_test
index 32dba4b031..6fe49f7975 100755
--- a/qpid/cpp/src/tests/run_test
+++ b/qpid/cpp/src/tests/run_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/sasl_fed b/qpid/cpp/src/tests/sasl_fed
index 48e5b4b40d..38ef43f56f 100755
--- a/qpid/cpp/src/tests/sasl_fed
+++ b/qpid/cpp/src/tests/sasl_fed
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/sasl_fed_ex b/qpid/cpp/src/tests/sasl_fed_ex
index 01791bcf2c..febafb19de 100755
--- a/qpid/cpp/src/tests/sasl_fed_ex
+++ b/qpid/cpp/src/tests/sasl_fed_ex
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/sasl_no_dir b/qpid/cpp/src/tests/sasl_no_dir
index 4d3863fa26..b2f5d1668e 100755
--- a/qpid/cpp/src/tests/sasl_no_dir
+++ b/qpid/cpp/src/tests/sasl_no_dir
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/sasl_test_setup.sh b/qpid/cpp/src/tests/sasl_test_setup.sh
index 28ea97e117..d41efbe6e5 100755
--- a/qpid/cpp/src/tests/sasl_test_setup.sh
+++ b/qpid/cpp/src/tests/sasl_test_setup.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/shared_perftest b/qpid/cpp/src/tests/shared_perftest
index 7a96feb79b..709ffd56b5 100755
--- a/qpid/cpp/src/tests/shared_perftest
+++ b/qpid/cpp/src/tests/shared_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/ssl_test b/qpid/cpp/src/tests/ssl_test
index da9b073d39..36a8d01b32 100755
--- a/qpid/cpp/src/tests/ssl_test
+++ b/qpid/cpp/src/tests/ssl_test
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/swig_python_tests b/qpid/cpp/src/tests/swig_python_tests
index 1815372863..6de10f5ae9 100755
--- a/qpid/cpp/src/tests/swig_python_tests
+++ b/qpid/cpp/src/tests/swig_python_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/test_env_common.sh b/qpid/cpp/src/tests/test_env_common.sh
index 038b6da85c..348664ca76 100644
--- a/qpid/cpp/src/tests/test_env_common.sh
+++ b/qpid/cpp/src/tests/test_env_common.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
diff --git a/qpid/cpp/src/tests/topic_perftest b/qpid/cpp/src/tests/topic_perftest
index 6be4bd9aab..04e1cdcffb 100755
--- a/qpid/cpp/src/tests/topic_perftest
+++ b/qpid/cpp/src/tests/topic_perftest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
diff --git a/qpid/cpp/src/tests/topictest b/qpid/cpp/src/tests/topictest
index 257c24bd81..f4c6e7187d 100755
--- a/qpid/cpp/src/tests/topictest
+++ b/qpid/cpp/src/tests/topictest
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one