* [PATCH] selftests: zram: use bash as script uses bash syntax
@ 2025-12-05 23:32 Kathara Sasikumar
2025-12-31 20:11 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: Kathara Sasikumar @ 2025-12-05 23:32 UTC (permalink / raw)
To: shuah
Cc: skhan, david.hunter.linux, linux-kselftest, linux-kernel,
katharasasikumar007
The zram_lib.sh script uses bash-specific syntax,
so the shebang must be /bin/bash instead of /bin/sh.
Signed-off-by: Kathara Sasikumar <katharasasikumar007@gmail.com>
---
tools/testing/selftests/zram/zram_lib.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/zram/zram_lib.sh b/tools/testing/selftests/zram/zram_lib.sh
index 21ec1966de76..16b108db450b 100755
--- a/tools/testing/selftests/zram/zram_lib.sh
+++ b/tools/testing/selftests/zram/zram_lib.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved.
#
--
2.51.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests: zram: use bash as script uses bash syntax
2025-12-05 23:32 [PATCH] selftests: zram: use bash as script uses bash syntax Kathara Sasikumar
@ 2025-12-31 20:11 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2025-12-31 20:11 UTC (permalink / raw)
To: Kathara Sasikumar, shuah
Cc: david.hunter.linux, linux-kselftest, linux-kernel, Shuah Khan
On 12/5/25 16:32, Kathara Sasikumar wrote:
> The zram_lib.sh script uses bash-specific syntax,
> so the shebang must be /bin/bash instead of /bin/sh.
What errors are you seeing without this change?
>
> Signed-off-by: Kathara Sasikumar <katharasasikumar007@gmail.com>
> ---
> tools/testing/selftests/zram/zram_lib.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/zram/zram_lib.sh b/tools/testing/selftests/zram/zram_lib.sh
> index 21ec1966de76..16b108db450b 100755
> --- a/tools/testing/selftests/zram/zram_lib.sh
> +++ b/tools/testing/selftests/zram/zram_lib.sh
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
> # SPDX-License-Identifier: GPL-2.0-or-later
> # Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved.
> #
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-31 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-05 23:32 [PATCH] selftests: zram: use bash as script uses bash syntax Kathara Sasikumar
2025-12-31 20:11 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®