Some operating systems, like OpenBSD, do not provide Bash by default. Once Bash is installed, it is located at /usr/local/bin, and not /bin. The shebang /usr/bin/env will locate Bash (if installed) and avoid the failure associated with hard coded /bin/bash
-#!/bin/bash
+#!/usr/bin/env bash
# get all the functions from ldns
-#!/bin/bash
+#!/usr/bin/env bash
egrep -v '^#' ../doc/function_manpages | sed 's/, /\n/g' | sed 's/|.*$//' | sort | uniq
-#!/bin/bash
+#!/usr/bin/env bash
# do ldns tests
cd test
. common.sh