* [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line
@ 2026-01-29 16:40 Mohamed Mediouni
2026-01-29 17:58 ` Michael S. Tsirkin
0 siblings, 1 reply; 5+ messages in thread
From: Mohamed Mediouni @ 2026-01-29 16:40 UTC (permalink / raw)
To: qemu-devel; +Cc: Ani Sinha, Igor Mammedov, Michael S. Tsirkin, Mohamed Mediouni
/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 <mohamed@unpredictable.fr>
---
tests/data/acpi/disassemle-aml.sh | 4 ++--
tests/data/acpi/rebuild-expected-aml.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/data/acpi/disassemle-aml.sh b/tests/data/acpi/disassemle-aml.sh
index 89561d233d..62e1991ace 100755
--- a/tests/data/acpi/disassemle-aml.sh
+++ b/tests/data/acpi/disassemle-aml.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
outdir=
while getopts "o:" arg; do
@@ -7,7 +7,7 @@ while getopts "o:" arg; do
outdir=$OPTARG
;;
\? )
- echo "Usage: ./tests/data/acpi/disassemle-aml.sh [-o <output-directory>]"
+ echo "Usage: ./tests/data/acpi/disassemble-aml.sh [-o <output-directory>]"
exit 1
;;
diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh
index cbf9ffe0dd..af45cf3007 100755
--- a/tests/data/acpi/rebuild-expected-aml.sh
+++ b/tests/data/acpi/rebuild-expected-aml.sh
@@ -57,7 +57,7 @@ old_allowed_dif=`grep -v -e 'List of comma-separated changed AML files to ignore
echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h
echo "The files were rebuilt and can be added to git."
-echo "You can use ${SRC_PATH}/tests/data/acpi/disassemle-aml.sh to disassemble them to ASL."
+echo "You can use ${SRC_PATH}/tests/data/acpi/disassemble-aml.sh to disassemble them to ASL."
if [ -z "$old_allowed_dif" ]; then
echo "Note! Please do not commit expected files with source changes"
--
2.50.1 (Apple Git-155)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line
2026-01-29 16:40 [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line Mohamed Mediouni
@ 2026-01-29 17:58 ` Michael S. Tsirkin
2026-01-29 18:52 ` Pierrick Bouvier
0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2026-01-29 17:58 UTC (permalink / raw)
To: Mohamed Mediouni; +Cc: qemu-devel, Ani Sinha, Igor Mammedov
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 <mohamed@unpredictable.fr>
/bin/bash then - that's in the posix standard I think.
> ---
> tests/data/acpi/disassemle-aml.sh | 4 ++--
> tests/data/acpi/rebuild-expected-aml.sh | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/data/acpi/disassemle-aml.sh b/tests/data/acpi/disassemle-aml.sh
> index 89561d233d..62e1991ace 100755
> --- a/tests/data/acpi/disassemle-aml.sh
> +++ b/tests/data/acpi/disassemle-aml.sh
> @@ -1,4 +1,4 @@
> -#!/usr/bin/bash
> +#!/usr/bin/env bash
>
> outdir=
> while getopts "o:" arg; do
> @@ -7,7 +7,7 @@ while getopts "o:" arg; do
> outdir=$OPTARG
> ;;
> \? )
> - echo "Usage: ./tests/data/acpi/disassemle-aml.sh [-o <output-directory>]"
> + echo "Usage: ./tests/data/acpi/disassemble-aml.sh [-o <output-directory>]"
> exit 1
> ;;
>
> diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh
> index cbf9ffe0dd..af45cf3007 100755
> --- a/tests/data/acpi/rebuild-expected-aml.sh
> +++ b/tests/data/acpi/rebuild-expected-aml.sh
> @@ -57,7 +57,7 @@ old_allowed_dif=`grep -v -e 'List of comma-separated changed AML files to ignore
> echo '/* List of comma-separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h
>
> echo "The files were rebuilt and can be added to git."
> -echo "You can use ${SRC_PATH}/tests/data/acpi/disassemle-aml.sh to disassemble them to ASL."
> +echo "You can use ${SRC_PATH}/tests/data/acpi/disassemble-aml.sh to disassemble them to ASL."
>
> if [ -z "$old_allowed_dif" ]; then
> echo "Note! Please do not commit expected files with source changes"
> --
> 2.50.1 (Apple Git-155)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line
2026-01-29 17:58 ` Michael S. Tsirkin
@ 2026-01-29 18:52 ` Pierrick Bouvier
2026-01-29 21:48 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 5+ messages in thread
From: Pierrick Bouvier @ 2026-01-29 18:52 UTC (permalink / raw)
To: Michael S. Tsirkin, Mohamed Mediouni; +Cc: qemu-devel, Ani Sinha, Igor Mammedov
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 <mohamed@unpredictable.fr>
>
> /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
Regards,
Pierrick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line
2026-01-29 18:52 ` Pierrick Bouvier
@ 2026-01-29 21:48 ` Philippe Mathieu-Daudé
2026-01-29 22:24 ` Mohamed Mediouni
0 siblings, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-01-29 21:48 UTC (permalink / raw)
To: Pierrick Bouvier, Michael S. Tsirkin, Mohamed Mediouni
Cc: qemu-devel, Ani Sinha, Igor Mammedov
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 <mohamed@unpredictable.fr>
>>
>> /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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line
2026-01-29 21:48 ` Philippe Mathieu-Daudé
@ 2026-01-29 22:24 ` Mohamed Mediouni
0 siblings, 0 replies; 5+ messages in thread
From: Mohamed Mediouni @ 2026-01-29 22:24 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Pierrick Bouvier, Michael S. Tsirkin, qemu-devel, Ani Sinha,
Igor Mammedov
> On 29. Jan 2026, at 22:48, Philippe Mathieu-Daudé <philmd@linaro.org> 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 <mohamed@unpredictable.fr>
>>>
>>> /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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-29 22:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-29 16:40 [PATCH] tests/data/acpi: disassemble-aml: rename and change interpreter line Mohamed Mediouni
2026-01-29 17:58 ` Michael S. Tsirkin
2026-01-29 18:52 ` Pierrick Bouvier
2026-01-29 21:48 ` Philippe Mathieu-Daudé
2026-01-29 22:24 ` Mohamed Mediouni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.