> On 29. Jan 2026, at 22:48, Philippe Mathieu-Daudé <[email protected]> wrote:
>
> On 29/1/26 19:52, Pierrick Bouvier wrote:
>> On 1/29/26 9:58 AM, Michael S. Tsirkin wrote:
>>> On Thu, Jan 29, 2026 at 05:40:04PM +0100, Mohamed Mediouni wrote:
>>>> /usr/bin/bash isn't guaranteed to be present. Switch
>>>> to /usr/bin/env bash.
>>>>
>>>> Rename disassemle to disassemble in the same commit.
>>>>
>>>> Adapt the correponding message in rebuild-expected-aml.
>>>>
>>>> Signed-off-by: Mohamed Mediouni <[email protected]>
>>>
>>> /bin/bash then - that's in the posix standard I think.
>>>
>> Using /usr/bin/env bash is a pretty "standard" and good practice.
>> https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-
>> superior-to-bin-bash
>
> On Darwin/macOS:
>
> $ which bash
> /opt/homebrew/bin/bash
>
> WRT QEMU source tree:
>
> $ git grep -E '#!.?/bin/bash' | wc -l
> 43
> $ git grep -E '#!.?/usr/bin/env bash' | wc -l
> 242
For reference macOS has a /bin/bash but it’s only there for legacy reasons as
it’s the last pre-GPLv3 release:
% /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
Copyright (C) 2007 Free Software Foundation, Inc.