Skip to contentSkip to conversation

selftests: zram: use bash as script uses bash syntax

PATCH In review Kathara Sasikumar 2 participants 2 messages Dec 5, 2025 – Dec 31, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: zram: use bash as script uses bash syntax

The zram_lib.sh script uses bash-specific syntax, so the shebang must be /bin/bash instead of /bin/sh.

---
 tools/testing/selftests/zram/zram_lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/zram/zram_lib.sh +1 -1
index 21ec1966de76..16b108db450b 100755
@@ -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.
 #
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 2 lines · Kathara Sasikumar

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?

Quoted 11 lines
---
  tools/testing/selftests/zram/zram_lib.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/zram/zram_lib.sh +0 -0
index 21ec1966de76..16b108db450b 100755

tools/testing/selftests/zram/zram_lib.sh line 4

Quoted 5 lines
tools/testing/selftests/zram/zram_lib.sh +1 -1
@@ -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