# HG changeset patch # User Olle Lundberg # Date 2014-03-25 22:07:52 # Node ID 5d57b2101ab119bce762025b8d83a00db7263e3b # Parent 864c56cb8945c8ea002c11a115fdf8206dd6c385 tests: don't hardcode path to bash interpreter Use the env binary to figure out the correct bash to use. Certain systems ships with an ancient version of bash, but the user might have installed a newer one that is earlier in $PATH. For example the current version of Mac OS X ships version 3.2.51 of bash, which does not understand new fancy builtins such as readarray. A user might install a newer version of bash, use that as their shell and add that path before bin. diff --git a/tests/bundles/rebase.sh b/tests/bundles/rebase.sh --- a/tests/bundles/rebase.sh +++ b/tests/bundles/rebase.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash hg init rebase cd rebase diff --git a/tests/bundles/remote.sh b/tests/bundles/remote.sh --- a/tests/bundles/remote.sh +++ b/tests/bundles/remote.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash hg init remote cd remote