[Libguestfs] [PATCH nbdkit 08/10] freebsd: In scripts use 'env bash' instead of '/bin/bash'.
Eric Blake
eblake at redhat.com
Mon Aug 13 21:14:13 UTC 2018
On 08/12/2018 03:51 AM, Richard W.M. Jones wrote:
> The path to bash on FreeBSD is /usr/local/bin/bash.
> ---
> +++ b/docs/make-links.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash -
> +#!/usr/bin/env bash
This loses the '-' argument that used to be passed by the kernel (but
you can't add it back to the #! linew without using BSD's or GNU
coreutils' recent addition of 'env -S'). Is it worth adding a 'set -'
line later in the script to compensate, if you were previously passing
the '-' as a way to reset the shell from inheriting environmental
differences?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
More information about the Libguestfs
mailing list