From: Thomas Weißschuh Date: Sun, 12 Apr 2026 06:00:35 +0000 (+0200) Subject: treewide: use bash from PATH X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=cf514a2ea3173d15c1bd8f80a0b7f955a2fc229b;p=thirdparty%2Futil-linux.git treewide: use bash from PATH The system shell at /bin/bash may not be sufficient. Look it up from $PATH, so the user can override it. Signed-off-by: Thomas Weißschuh --- diff --git a/.github/workflows/cibuild-setup-ubuntu.sh b/.github/workflows/cibuild-setup-ubuntu.sh index fc7d6d0fe5..1ecd013ea2 100755 --- a/.github/workflows/cibuild-setup-ubuntu.sh +++ b/.github/workflows/cibuild-setup-ubuntu.sh @@ -1,5 +1,5 @@ -#!/bin/bash - +#!/usr/bin/env bash + set -ex export DEBIAN_FRONTEND=noninteractive diff --git a/.github/workflows/cibuild.sh b/.github/workflows/cibuild.sh index 850c651d8b..a57adc2d90 100755 --- a/.github/workflows/cibuild.sh +++ b/.github/workflows/cibuild.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -ex diff --git a/misc-utils/getopt-example.bash b/misc-utils/getopt-example.bash index 1e267eb17e..1ce6a5f42c 100644 --- a/misc-utils/getopt-example.bash +++ b/misc-utils/getopt-example.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # A small example script for using the getopt(1) program. # This script will only work with bash(1). diff --git a/tests/run.sh b/tests/run.sh index 3500abe2f4..58735885a7 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/bitops/swapbytes b/tests/ts/bitops/swapbytes index 127261738b..ca2977fb51 100755 --- a/tests/ts/bitops/swapbytes +++ b/tests/ts/bitops/swapbytes @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/bits/bits b/tests/ts/bits/bits index 167d968f05..80f09ae95d 100755 --- a/tests/ts/bits/bits +++ b/tests/ts/bits/bits @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/ts/blkdiscard/offsets b/tests/ts/blkdiscard/offsets index c033b19b6b..f3f5a68bb4 100755 --- a/tests/ts/blkdiscard/offsets +++ b/tests/ts/blkdiscard/offsets @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Federico Simoncelli diff --git a/tests/ts/blkid/cache b/tests/ts/blkid/cache index bcce18563c..29c707c3d5 100755 --- a/tests/ts/blkid/cache +++ b/tests/ts/blkid/cache @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/blkid/dm-err b/tests/ts/blkid/dm-err index 6da3525c17..576d53d916 100755 --- a/tests/ts/blkid/dm-err +++ b/tests/ts/blkid/dm-err @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Karel Zak diff --git a/tests/ts/blkid/low-probe b/tests/ts/blkid/low-probe index ee6ba7d264..2be7ef3b22 100755 --- a/tests/ts/blkid/low-probe +++ b/tests/ts/blkid/low-probe @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/blkid/lowprobe-pt b/tests/ts/blkid/lowprobe-pt index 8e55ccc9bd..3223db3580 100755 --- a/tests/ts/blkid/lowprobe-pt +++ b/tests/ts/blkid/lowprobe-pt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/blkid/md-raid0-whole b/tests/ts/blkid/md-raid0-whole index 660b53e118..9e5bb9fe7f 100755 --- a/tests/ts/blkid/md-raid0-whole +++ b/tests/ts/blkid/md-raid0-whole @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part index 45888b886e..25001c313a 100755 --- a/tests/ts/blkid/md-raid1-part +++ b/tests/ts/blkid/md-raid1-part @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole index dc6949141c..2f81e6b957 100755 --- a/tests/ts/blkid/md-raid1-whole +++ b/tests/ts/blkid/md-raid1-whole @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/blkid/offset b/tests/ts/blkid/offset index b043c8177c..5297420254 100755 --- a/tests/ts/blkid/offset +++ b/tests/ts/blkid/offset @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/blkid/options b/tests/ts/blkid/options index 4405bdbb24..9633b5072b 100755 --- a/tests/ts/blkid/options +++ b/tests/ts/blkid/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 Christian Goeschel Ndjomouo diff --git a/tests/ts/blkid/output b/tests/ts/blkid/output index d9dab58596..1c470d560f 100755 --- a/tests/ts/blkid/output +++ b/tests/ts/blkid/output @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Thomas Weißschuh diff --git a/tests/ts/blkid/pt-details b/tests/ts/blkid/pt-details index 202287357f..8c0eee25d1 100755 --- a/tests/ts/blkid/pt-details +++ b/tests/ts/blkid/pt-details @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/blkid/topology b/tests/ts/blkid/topology index f0cd59ecf2..eaa60e9035 100755 --- a/tests/ts/blkid/topology +++ b/tests/ts/blkid/topology @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Thomas Weißschuh diff --git a/tests/ts/blkid/usages b/tests/ts/blkid/usages index f79a68b62f..e6051fb74d 100755 --- a/tests/ts/blkid/usages +++ b/tests/ts/blkid/usages @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/build-sys/config b/tests/ts/build-sys/config index 2d1291330d..b008c63714 100755 --- a/tests/ts/build-sys/config +++ b/tests/ts/build-sys/config @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2011 Karel Zak diff --git a/tests/ts/cal/bigyear b/tests/ts/cal/bigyear index 25c54f5c9e..fca23970b4 100755 --- a/tests/ts/cal/bigyear +++ b/tests/ts/cal/bigyear @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/cal/color b/tests/ts/cal/color index 359f6a8f49..81821895ea 100755 --- a/tests/ts/cal/color +++ b/tests/ts/cal/color @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/cal/colorw b/tests/ts/cal/colorw index f4286fd4eb..01f9bc8177 100755 --- a/tests/ts/cal/colorw +++ b/tests/ts/cal/colorw @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/cal/column b/tests/ts/cal/column index ce336caa35..d90815c565 100755 --- a/tests/ts/cal/column +++ b/tests/ts/cal/column @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007-2018 Karel Zak diff --git a/tests/ts/cal/jan1753 b/tests/ts/cal/jan1753 index 4c499e6d29..e2acdff012 100755 --- a/tests/ts/cal/jan1753 +++ b/tests/ts/cal/jan1753 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/cal/month b/tests/ts/cal/month index 96ab1136ee..f58beb72c7 100755 --- a/tests/ts/cal/month +++ b/tests/ts/cal/month @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007-2018 Karel Zak diff --git a/tests/ts/cal/sep1752 b/tests/ts/cal/sep1752 index 0fe1ffd3b0..13c83753e9 100755 --- a/tests/ts/cal/sep1752 +++ b/tests/ts/cal/sep1752 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/cal/vertical b/tests/ts/cal/vertical index fe0b904de9..91c9f6ba3f 100755 --- a/tests/ts/cal/vertical +++ b/tests/ts/cal/vertical @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007-2018 Karel Zak diff --git a/tests/ts/cal/weekarg b/tests/ts/cal/weekarg index 006b03d693..47a3a20fe4 100755 --- a/tests/ts/cal/weekarg +++ b/tests/ts/cal/weekarg @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/cal/weeknum b/tests/ts/cal/weeknum index 444c50bbb5..fbcff59a61 100755 --- a/tests/ts/cal/weeknum +++ b/tests/ts/cal/weeknum @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/cal/year b/tests/ts/cal/year index 6bd958a591..b18954f48a 100755 --- a/tests/ts/cal/year +++ b/tests/ts/cal/year @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007-2018 Karel Zak diff --git a/tests/ts/chfn/gecos b/tests/ts/chfn/gecos index b95a920a93..f0d42289ba 100755 --- a/tests/ts/chfn/gecos +++ b/tests/ts/chfn/gecos @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2019 Radka Skvarilova diff --git a/tests/ts/chfn/input b/tests/ts/chfn/input index a39b680bd9..64c85caab3 100755 --- a/tests/ts/chfn/input +++ b/tests/ts/chfn/input @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Christian Goeschel Ndjomouo # diff --git a/tests/ts/choom/choom b/tests/ts/choom/choom index 9295abed87..054c87cc4d 100755 --- a/tests/ts/choom/choom +++ b/tests/ts/choom/choom @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/chrt/chrt b/tests/ts/chrt/chrt index c57f5ab4cd..810d263a3e 100755 --- a/tests/ts/chrt/chrt +++ b/tests/ts/chrt/chrt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/chrt/chrt-non-root b/tests/ts/chrt/chrt-non-root index b8923c7c7c..788700c911 100755 --- a/tests/ts/chrt/chrt-non-root +++ b/tests/ts/chrt/chrt-non-root @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/col/io b/tests/ts/col/io index 9766683121..1143ab890a 100755 --- a/tests/ts/col/io +++ b/tests/ts/col/io @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2020 Sami Kerola diff --git a/tests/ts/col/multibyte b/tests/ts/col/multibyte index fa14a0af4b..1b17a2cdb6 100755 --- a/tests/ts/col/multibyte +++ b/tests/ts/col/multibyte @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/col/newlines b/tests/ts/col/newlines index 8a6d9048d8..87f9819ffe 100755 --- a/tests/ts/col/newlines +++ b/tests/ts/col/newlines @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2020 Sami Kerola diff --git a/tests/ts/col/options b/tests/ts/col/options index 6df11ae152..490fe2c94c 100755 --- a/tests/ts/col/options +++ b/tests/ts/col/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2020 Sami Kerola diff --git a/tests/ts/colcrt/functional b/tests/ts/colcrt/functional index 26014b8dd0..b5d9416591 100755 --- a/tests/ts/colcrt/functional +++ b/tests/ts/colcrt/functional @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/colcrt/regressions b/tests/ts/colcrt/regressions index 2bb846959a..6a188be6c2 100755 --- a/tests/ts/colcrt/regressions +++ b/tests/ts/colcrt/regressions @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/colrm/rm2-2 b/tests/ts/colrm/rm2-2 index ed6e9627f5..6e497673a3 100755 --- a/tests/ts/colrm/rm2-2 +++ b/tests/ts/colrm/rm2-2 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Sami Kerola diff --git a/tests/ts/column/ansiescape b/tests/ts/column/ansiescape index 004ad8d719..dcfced64b4 100755 --- a/tests/ts/column/ansiescape +++ b/tests/ts/column/ansiescape @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Juarez Rudsatz diff --git a/tests/ts/column/columnate b/tests/ts/column/columnate index 9bd53a71f6..a457a1f284 100755 --- a/tests/ts/column/columnate +++ b/tests/ts/column/columnate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Sami Kerola diff --git a/tests/ts/column/invalid-multibyte b/tests/ts/column/invalid-multibyte index 32cc3f3a4e..1dbfe09afd 100755 --- a/tests/ts/column/invalid-multibyte +++ b/tests/ts/column/invalid-multibyte @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Sami Kerola diff --git a/tests/ts/column/multi-file b/tests/ts/column/multi-file index 28c3689f52..3d0e8ef0fb 100755 --- a/tests/ts/column/multi-file +++ b/tests/ts/column/multi-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Sami Kerola diff --git a/tests/ts/column/table b/tests/ts/column/table index 326ea89569..282b058e25 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Sami Kerola diff --git a/tests/ts/copyfilerange/copyfilerange b/tests/ts/copyfilerange/copyfilerange index a6efcc9657..0cc05e0a44 100755 --- a/tests/ts/copyfilerange/copyfilerange +++ b/tests/ts/copyfilerange/copyfilerange @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Dick Marinus # diff --git a/tests/ts/coresched/coresched b/tests/ts/coresched/coresched index 1cdc3c2e78..c35ef7653a 100755 --- a/tests/ts/coresched/coresched +++ b/tests/ts/coresched/coresched @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: EUPL-1.2 # # This file is part of util-linux diff --git a/tests/ts/cramfs/doubles b/tests/ts/cramfs/doubles index d81daf1e34..20b67311ee 100755 --- a/tests/ts/cramfs/doubles +++ b/tests/ts/cramfs/doubles @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Karel Zak diff --git a/tests/ts/cramfs/fsck-bad-header b/tests/ts/cramfs/fsck-bad-header index d834b24cc0..29f07faea2 100755 --- a/tests/ts/cramfs/fsck-bad-header +++ b/tests/ts/cramfs/fsck-bad-header @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/cramfs/fsck-endianness b/tests/ts/cramfs/fsck-endianness index 53af53e3fb..b7281f8708 100755 --- a/tests/ts/cramfs/fsck-endianness +++ b/tests/ts/cramfs/fsck-endianness @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/cramfs/mkfs b/tests/ts/cramfs/mkfs index 1e415d8263..3c09029229 100755 --- a/tests/ts/cramfs/mkfs +++ b/tests/ts/cramfs/mkfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/cramfs/mkfs-endianness b/tests/ts/cramfs/mkfs-endianness index d10e1e1698..cf4aa01d09 100755 --- a/tests/ts/cramfs/mkfs-endianness +++ b/tests/ts/cramfs/mkfs-endianness @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/dmesg/cid-json b/tests/ts/dmesg/cid-json index 78363793da..d1318bf519 100755 --- a/tests/ts/dmesg/cid-json +++ b/tests/ts/dmesg/cid-json @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-colors b/tests/ts/dmesg/cid-kmsg-colors index b94e8a9ee7..267205104a 100755 --- a/tests/ts/dmesg/cid-kmsg-colors +++ b/tests/ts/dmesg/cid-kmsg-colors @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-console-levels b/tests/ts/dmesg/cid-kmsg-console-levels index 19d80040a5..5bcf488c2c 100755 --- a/tests/ts/dmesg/cid-kmsg-console-levels +++ b/tests/ts/dmesg/cid-kmsg-console-levels @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-decode b/tests/ts/dmesg/cid-kmsg-decode index b92099770c..d4eb5c7f71 100755 --- a/tests/ts/dmesg/cid-kmsg-decode +++ b/tests/ts/dmesg/cid-kmsg-decode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-delta b/tests/ts/dmesg/cid-kmsg-delta index 1b5f572704..65aaa66948 100755 --- a/tests/ts/dmesg/cid-kmsg-delta +++ b/tests/ts/dmesg/cid-kmsg-delta @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-facilities b/tests/ts/dmesg/cid-kmsg-facilities index 38ca9c5657..cfd84a49b5 100755 --- a/tests/ts/dmesg/cid-kmsg-facilities +++ b/tests/ts/dmesg/cid-kmsg-facilities @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-indentation b/tests/ts/dmesg/cid-kmsg-indentation index c3f8e066a3..9cabc446e2 100755 --- a/tests/ts/dmesg/cid-kmsg-indentation +++ b/tests/ts/dmesg/cid-kmsg-indentation @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-json b/tests/ts/dmesg/cid-kmsg-json index ad1e3e785d..ce63828058 100755 --- a/tests/ts/dmesg/cid-kmsg-json +++ b/tests/ts/dmesg/cid-kmsg-json @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/cid-kmsg-limit b/tests/ts/dmesg/cid-kmsg-limit index 06f1c8bfb7..0cad4115ac 100755 --- a/tests/ts/dmesg/cid-kmsg-limit +++ b/tests/ts/dmesg/cid-kmsg-limit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/colors b/tests/ts/dmesg/colors index 8028c48316..3d97ad3c22 100755 --- a/tests/ts/dmesg/colors +++ b/tests/ts/dmesg/colors @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/console-levels b/tests/ts/dmesg/console-levels index fc39cf0d73..46dea82e24 100755 --- a/tests/ts/dmesg/console-levels +++ b/tests/ts/dmesg/console-levels @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/decode b/tests/ts/dmesg/decode index 673f2bba1a..db2fe6e2fb 100755 --- a/tests/ts/dmesg/decode +++ b/tests/ts/dmesg/decode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/delta b/tests/ts/dmesg/delta index 83d862943a..693a789fd6 100755 --- a/tests/ts/dmesg/delta +++ b/tests/ts/dmesg/delta @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/facilities b/tests/ts/dmesg/facilities index 13dd6c6dfe..36ea608418 100755 --- a/tests/ts/dmesg/facilities +++ b/tests/ts/dmesg/facilities @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/indentation b/tests/ts/dmesg/indentation index a4f8e1cf53..ae4bb06980 100755 --- a/tests/ts/dmesg/indentation +++ b/tests/ts/dmesg/indentation @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/json b/tests/ts/dmesg/json index 09ed2b0fa6..1b3689ca20 100755 --- a/tests/ts/dmesg/json +++ b/tests/ts/dmesg/json @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/kmsg-file b/tests/ts/dmesg/kmsg-file index a90a91e5ea..558b243877 100755 --- a/tests/ts/dmesg/kmsg-file +++ b/tests/ts/dmesg/kmsg-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/limit b/tests/ts/dmesg/limit index f3f9643f47..2d71f37f74 100755 --- a/tests/ts/dmesg/limit +++ b/tests/ts/dmesg/limit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/dmesg/timestamp-format b/tests/ts/dmesg/timestamp-format index 07f51b2599..1081327c39 100755 --- a/tests/ts/dmesg/timestamp-format +++ b/tests/ts/dmesg/timestamp-format @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount index af5808f2b8..ed0d9108bf 100755 --- a/tests/ts/eject/umount +++ b/tests/ts/eject/umount @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="umount" diff --git a/tests/ts/enosys/enosys b/tests/ts/enosys/enosys index 591b292a85..33c79d581c 100755 --- a/tests/ts/enosys/enosys +++ b/tests/ts/enosys/enosys @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2022 Thomas Weißschuh # diff --git a/tests/ts/exch/exch b/tests/ts/exch/exch index 1c6a28e875..9ba51b9283 100755 --- a/tests/ts/exch/exch +++ b/tests/ts/exch/exch @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/fadvise/drop b/tests/ts/fadvise/drop index 90e4858ea0..162ffb6941 100755 --- a/tests/ts/fadvise/drop +++ b/tests/ts/fadvise/drop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="drop page caches related to a file" diff --git a/tests/ts/fallocate/fallocate b/tests/ts/fallocate/fallocate index 647eabcab0..472937d5f6 100755 --- a/tests/ts/fallocate/fallocate +++ b/tests/ts/fallocate/fallocate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/fdisk/align-512-4K b/tests/ts/fdisk/align-512-4K index d44c6df090..3e491e0d9f 100755 --- a/tests/ts/fdisk/align-512-4K +++ b/tests/ts/fdisk/align-512-4K @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/align-512-4K-63 b/tests/ts/fdisk/align-512-4K-63 index 3d66899135..fbb463e073 100755 --- a/tests/ts/fdisk/align-512-4K-63 +++ b/tests/ts/fdisk/align-512-4K-63 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md index 1e0dd3c938..98a3b45681 100755 --- a/tests/ts/fdisk/align-512-4K-md +++ b/tests/ts/fdisk/align-512-4K-md @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/align-512-512 b/tests/ts/fdisk/align-512-512 index e61110f1c8..8fc7cd0d35 100755 --- a/tests/ts/fdisk/align-512-512 +++ b/tests/ts/fdisk/align-512-512 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/align-512-512-topology b/tests/ts/fdisk/align-512-512-topology index cdb7269cbc..81a8bdb6a0 100755 --- a/tests/ts/fdisk/align-512-512-topology +++ b/tests/ts/fdisk/align-512-512-topology @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/bsd b/tests/ts/fdisk/bsd index 54bbb9191a..4927cefb98 100755 --- a/tests/ts/fdisk/bsd +++ b/tests/ts/fdisk/bsd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/fdisk/gpt b/tests/ts/fdisk/gpt index d1c76da3e1..3dffb7682f 100755 --- a/tests/ts/fdisk/gpt +++ b/tests/ts/fdisk/gpt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/fdisk/gpt-resize b/tests/ts/fdisk/gpt-resize index 198f38e5f2..305031d46b 100755 --- a/tests/ts/fdisk/gpt-resize +++ b/tests/ts/fdisk/gpt-resize @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/id b/tests/ts/fdisk/id index 57fbc60c0c..15bf2baddc 100755 --- a/tests/ts/fdisk/id +++ b/tests/ts/fdisk/id @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/mbr-dos-mode b/tests/ts/fdisk/mbr-dos-mode index 9d5e98907f..3edce6572f 100755 --- a/tests/ts/fdisk/mbr-dos-mode +++ b/tests/ts/fdisk/mbr-dos-mode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/mbr-logical-ebr-gap b/tests/ts/fdisk/mbr-logical-ebr-gap index b95cd42c92..232fa88171 100755 --- a/tests/ts/fdisk/mbr-logical-ebr-gap +++ b/tests/ts/fdisk/mbr-logical-ebr-gap @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="MBR - reserve EBR gap" . "$TS_TOPDIR"/functions.sh diff --git a/tests/ts/fdisk/mbr-nondos-mode b/tests/ts/fdisk/mbr-nondos-mode index 4db206415b..82ee75fef4 100755 --- a/tests/ts/fdisk/mbr-nondos-mode +++ b/tests/ts/fdisk/mbr-nondos-mode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/mbr-sort b/tests/ts/fdisk/mbr-sort index 40fcad2792..ebb9a22279 100755 --- a/tests/ts/fdisk/mbr-sort +++ b/tests/ts/fdisk/mbr-sort @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/oddinput b/tests/ts/fdisk/oddinput index 63f7eb1dba..f19a350314 100755 --- a/tests/ts/fdisk/oddinput +++ b/tests/ts/fdisk/oddinput @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fdisk/resize b/tests/ts/fdisk/resize index 9536cd7e51..00bf62c2fb 100755 --- a/tests/ts/fdisk/resize +++ b/tests/ts/fdisk/resize @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/fdisk/sunlabel b/tests/ts/fdisk/sunlabel index 22ce2bd4b2..aa98b83665 100755 --- a/tests/ts/fdisk/sunlabel +++ b/tests/ts/fdisk/sunlabel @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count index 24758fddff..7c0558e584 100755 --- a/tests/ts/fincore/count +++ b/tests/ts/fincore/count @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="count file contents in core" diff --git a/tests/ts/findmnt/df-options b/tests/ts/findmnt/df-options index e3049660f4..f3f052a84c 100755 --- a/tests/ts/findmnt/df-options +++ b/tests/ts/findmnt/df-options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/findmnt/filter b/tests/ts/findmnt/filter index 8b2429268e..ca9edce4c4 100755 --- a/tests/ts/findmnt/filter +++ b/tests/ts/findmnt/filter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/findmnt/filterQ b/tests/ts/findmnt/filterQ index 1771db9f27..9bd667ed34 100755 --- a/tests/ts/findmnt/filterQ +++ b/tests/ts/findmnt/filterQ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/findmnt/listmount b/tests/ts/findmnt/listmount index 769b460a94..33182528df 100755 --- a/tests/ts/findmnt/listmount +++ b/tests/ts/findmnt/listmount @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/findmnt/outputs b/tests/ts/findmnt/outputs index 198cbea986..ee762d7fdc 100755 --- a/tests/ts/findmnt/outputs +++ b/tests/ts/findmnt/outputs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/findmnt/target b/tests/ts/findmnt/target index 6b4136d41a..0c427cd2cd 100755 --- a/tests/ts/findmnt/target +++ b/tests/ts/findmnt/target @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/flock/flock b/tests/ts/flock/flock index 85e341d6c8..3223f8a20a 100755 --- a/tests/ts/flock/flock +++ b/tests/ts/flock/flock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/flock/range-lock b/tests/ts/flock/range-lock index ba095edecc..25065cb373 100755 --- a/tests/ts/flock/range-lock +++ b/tests/ts/flock/range-lock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/fsck/ismounted b/tests/ts/fsck/ismounted index 477ac4b70b..7d194294de 100755 --- a/tests/ts/fsck/ismounted +++ b/tests/ts/fsck/ismounted @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak # diff --git a/tests/ts/fuzzers/test_blkid_fuzz b/tests/ts/fuzzers/test_blkid_fuzz index 7ce89bc47e..982ae2eea9 100755 --- a/tests/ts/fuzzers/test_blkid_fuzz +++ b/tests/ts/fuzzers/test_blkid_fuzz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz b/tests/ts/fuzzers/test_fdisk_script_fuzz index 44f2d6a4c2..340ab54527 100755 --- a/tests/ts/fuzzers/test_fdisk_script_fuzz +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/fuzzers/test_last_fuzz b/tests/ts/fuzzers/test_last_fuzz index c121aba160..9d1eb770f5 100755 --- a/tests/ts/fuzzers/test_last_fuzz +++ b/tests/ts/fuzzers/test_last_fuzz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/fuzzers/test_mount_fuzz b/tests/ts/fuzzers/test_mount_fuzz index 3fcf599ba6..1241502919 100755 --- a/tests/ts/fuzzers/test_mount_fuzz +++ b/tests/ts/fuzzers/test_mount_fuzz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/getino/getino b/tests/ts/getino/getino index 0c2991935e..5296505818 100755 --- a/tests/ts/getino/getino +++ b/tests/ts/getino/getino @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/getopt/basic b/tests/ts/getopt/basic index f73695f4a4..0b483176cf 100755 --- a/tests/ts/getopt/basic +++ b/tests/ts/getopt/basic @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/getopt/options b/tests/ts/getopt/options index deabb372f8..7c50f9966a 100755 --- a/tests/ts/getopt/options +++ b/tests/ts/getopt/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/hardlink/options b/tests/ts/hardlink/options index 1000714019..04abdc555a 100755 --- a/tests/ts/hardlink/options +++ b/tests/ts/hardlink/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2018 Ruediger Meier # diff --git a/tests/ts/hexdump/format-strings b/tests/ts/hexdump/format-strings index 787d0db69c..9b6039025f 100755 --- a/tests/ts/hexdump/format-strings +++ b/tests/ts/hexdump/format-strings @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/hexdump/highlighting b/tests/ts/hexdump/highlighting index b7208fa83a..111b74a0f5 100755 --- a/tests/ts/hexdump/highlighting +++ b/tests/ts/hexdump/highlighting @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/hwclock/show b/tests/ts/hwclock/show index d8cdc8ee74..2e94352616 100755 --- a/tests/ts/hwclock/show +++ b/tests/ts/hwclock/show @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Thomas Weißschuh diff --git a/tests/ts/hwclock/systohc b/tests/ts/hwclock/systohc index fbd67ee9c0..e6d8e5d384 100755 --- a/tests/ts/hwclock/systohc +++ b/tests/ts/hwclock/systohc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ionice/ionice b/tests/ts/ionice/ionice index 96d88a01ab..43c80d65b1 100755 --- a/tests/ts/ionice/ionice +++ b/tests/ts/ionice/ionice @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/ipcs/functions.sh b/tests/ts/ipcs/functions.sh index e9b437ee4d..716f93e352 100644 --- a/tests/ts/ipcs/functions.sh +++ b/tests/ts/ipcs/functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ipcs/headers b/tests/ts/ipcs/headers index d01424ef45..8566410a98 100755 --- a/tests/ts/ipcs/headers +++ b/tests/ts/ipcs/headers @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ipcs/limits b/tests/ts/ipcs/limits index 22add86fd7..8cf19e3b24 100755 --- a/tests/ts/ipcs/limits +++ b/tests/ts/ipcs/limits @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2 index 6da8880868..495aa060f8 100755 --- a/tests/ts/ipcs/limits2 +++ b/tests/ts/ipcs/limits2 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ipcs/mk-rm-msg b/tests/ts/ipcs/mk-rm-msg index c36a508468..e08c186499 100755 --- a/tests/ts/ipcs/mk-rm-msg +++ b/tests/ts/ipcs/mk-rm-msg @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/ipcs/mk-rm-sem b/tests/ts/ipcs/mk-rm-sem index 900aa17f84..28eb237692 100755 --- a/tests/ts/ipcs/mk-rm-sem +++ b/tests/ts/ipcs/mk-rm-sem @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/ipcs/mk-rm-shm b/tests/ts/ipcs/mk-rm-shm index 7fd53107f2..b329b82f96 100755 --- a/tests/ts/ipcs/mk-rm-shm +++ b/tests/ts/ipcs/mk-rm-shm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/isosize/print-size b/tests/ts/isosize/print-size index 33e0b3b563..ed3799ffd8 100755 --- a/tests/ts/isosize/print-size +++ b/tests/ts/isosize/print-size @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/all_processes b/tests/ts/kill/all_processes index b2280777fc..89ba4c5a3b 100755 --- a/tests/ts/kill/all_processes +++ b/tests/ts/kill/all_processes @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/decode b/tests/ts/kill/decode index 21879bdb63..9c7ccb3a43 100755 --- a/tests/ts/kill/decode +++ b/tests/ts/kill/decode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/name_to_number b/tests/ts/kill/name_to_number index 7a8ad587f6..50c1102a6e 100755 --- a/tests/ts/kill/name_to_number +++ b/tests/ts/kill/name_to_number @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/options b/tests/ts/kill/options index 10653a543b..6478613f06 100755 --- a/tests/ts/kill/options +++ b/tests/ts/kill/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/pidfdino b/tests/ts/kill/pidfdino index 047fcc42e4..5e6c54d66f 100755 --- a/tests/ts/kill/pidfdino +++ b/tests/ts/kill/pidfdino @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/print_pid b/tests/ts/kill/print_pid index 6e2db3711f..ea2638ab23 100755 --- a/tests/ts/kill/print_pid +++ b/tests/ts/kill/print_pid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/kill/queue b/tests/ts/kill/queue index 6c9e9efc9b..5a9da6d79d 100755 --- a/tests/ts/kill/queue +++ b/tests/ts/kill/queue @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/lib/pidutils b/tests/ts/lib/pidutils index 7b5e051c06..a000a4c914 100755 --- a/tests/ts/lib/pidutils +++ b/tests/ts/lib/pidutils @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/lib/procfs b/tests/ts/lib/procfs index 998aa395bd..248acb731e 100755 --- a/tests/ts/lib/procfs +++ b/tests/ts/lib/procfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Thomas Weißschuh # diff --git a/tests/ts/lib/timeutils b/tests/ts/lib/timeutils index 043b0c0e13..7f6c369fa3 100755 --- a/tests/ts/lib/timeutils +++ b/tests/ts/lib/timeutils @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later # diff --git a/tests/ts/libfdisk/gpt b/tests/ts/libfdisk/gpt index b4019295f7..97411e52dd 100755 --- a/tests/ts/libfdisk/gpt +++ b/tests/ts/libfdisk/gpt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libfdisk/mkpart b/tests/ts/libfdisk/mkpart index 6038f269ec..69791d274d 100755 --- a/tests/ts/libfdisk/mkpart +++ b/tests/ts/libfdisk/mkpart @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libfdisk/mkpart-full b/tests/ts/libfdisk/mkpart-full index 4c026ceb01..fa17c36fdd 100755 --- a/tests/ts/libfdisk/mkpart-full +++ b/tests/ts/libfdisk/mkpart-full @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/liblastlog2/dlopen b/tests/ts/liblastlog2/dlopen index 8ce4e175d6..fb4f873a35 100755 --- a/tests/ts/liblastlog2/dlopen +++ b/tests/ts/liblastlog2/dlopen @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="dlopen" diff --git a/tests/ts/liblastlog2/pam_lastlog2_output b/tests/ts/liblastlog2/pam_lastlog2_output index c9961f1102..f5f0de272c 100755 --- a/tests/ts/liblastlog2/pam_lastlog2_output +++ b/tests/ts/liblastlog2/pam_lastlog2_output @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="pam_lastlog2_output" diff --git a/tests/ts/liblastlog2/remove_entry b/tests/ts/liblastlog2/remove_entry index 63503d9d56..17058a2079 100755 --- a/tests/ts/liblastlog2/remove_entry +++ b/tests/ts/liblastlog2/remove_entry @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="remove_entry" diff --git a/tests/ts/liblastlog2/rename_user b/tests/ts/liblastlog2/rename_user index 38f07636d1..4cb8474bfe 100755 --- a/tests/ts/liblastlog2/rename_user +++ b/tests/ts/liblastlog2/rename_user @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="rename_user" diff --git a/tests/ts/liblastlog2/sqlite3_time b/tests/ts/liblastlog2/sqlite3_time index 9ff27fe5eb..f6c63f8705 100755 --- a/tests/ts/liblastlog2/sqlite3_time +++ b/tests/ts/liblastlog2/sqlite3_time @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="sqlite3_time" diff --git a/tests/ts/liblastlog2/write_read_user b/tests/ts/liblastlog2/write_read_user index 03e034fa80..a8b9a57067 100755 --- a/tests/ts/liblastlog2/write_read_user +++ b/tests/ts/liblastlog2/write_read_user @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="write_read_user" diff --git a/tests/ts/liblastlog2/y2038_ll2_read_all b/tests/ts/liblastlog2/y2038_ll2_read_all index da779c298f..e2fce44698 100755 --- a/tests/ts/liblastlog2/y2038_ll2_read_all +++ b/tests/ts/liblastlog2/y2038_ll2_read_all @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="y2038_ll2_read_all" diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context index a5d2e81a3d..76e62477af 100755 --- a/tests/ts/libmount/context +++ b/tests/ts/libmount/context @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/context-py b/tests/ts/libmount/context-py index 53a211cf91..b07bd8adcc 100755 --- a/tests/ts/libmount/context-py +++ b/tests/ts/libmount/context-py @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/context-utab b/tests/ts/libmount/context-utab index c67017cdc9..56a7f12c4c 100755 --- a/tests/ts/libmount/context-utab +++ b/tests/ts/libmount/context-utab @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/context-utab-py b/tests/ts/libmount/context-utab-py index 59c9e49313..7e9bc1e91a 100755 --- a/tests/ts/libmount/context-utab-py +++ b/tests/ts/libmount/context-utab-py @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak TS_TOPDIR="${0%/*}/../.." diff --git a/tests/ts/libmount/debug b/tests/ts/libmount/debug index e98d9228eb..c4c38c50c1 100755 --- a/tests/ts/libmount/debug +++ b/tests/ts/libmount/debug @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2014 Ondrej Oprala diff --git a/tests/ts/libmount/loop b/tests/ts/libmount/loop index 72fd27f014..fbbed8a302 100755 --- a/tests/ts/libmount/loop +++ b/tests/ts/libmount/loop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Stanislav Brabec diff --git a/tests/ts/libmount/loop-overlay b/tests/ts/libmount/loop-overlay index 257ce8a999..bb893e3998 100755 --- a/tests/ts/libmount/loop-overlay +++ b/tests/ts/libmount/loop-overlay @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Stanislav Brabec diff --git a/tests/ts/libmount/optlist b/tests/ts/libmount/optlist index 84994967f8..3158340060 100755 --- a/tests/ts/libmount/optlist +++ b/tests/ts/libmount/optlist @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/optstr b/tests/ts/libmount/optstr index 979517e060..083a855333 100755 --- a/tests/ts/libmount/optstr +++ b/tests/ts/libmount/optstr @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/tabdiff b/tests/ts/libmount/tabdiff index 2f9acb91dc..9108ef5e42 100755 --- a/tests/ts/libmount/tabdiff +++ b/tests/ts/libmount/tabdiff @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2011 Karel Zak diff --git a/tests/ts/libmount/tabfiles b/tests/ts/libmount/tabfiles index 819fc3547e..f57c8dcb89 100755 --- a/tests/ts/libmount/tabfiles +++ b/tests/ts/libmount/tabfiles @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/tabfiles-py b/tests/ts/libmount/tabfiles-py index ba89ddfe27..0d42051089 100755 --- a/tests/ts/libmount/tabfiles-py +++ b/tests/ts/libmount/tabfiles-py @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/tabfiles-tags b/tests/ts/libmount/tabfiles-tags index cc484290a5..6a6df9c657 100755 --- a/tests/ts/libmount/tabfiles-tags +++ b/tests/ts/libmount/tabfiles-tags @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="tags" diff --git a/tests/ts/libmount/tabfiles-tags-py b/tests/ts/libmount/tabfiles-tags-py index 5c5c7c31b7..96689cdd35 100755 --- a/tests/ts/libmount/tabfiles-tags-py +++ b/tests/ts/libmount/tabfiles-tags-py @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="tags-py" diff --git a/tests/ts/libmount/update b/tests/ts/libmount/update index b8f74887da..c96620e01c 100755 --- a/tests/ts/libmount/update +++ b/tests/ts/libmount/update @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/update-py b/tests/ts/libmount/update-py index b4450c4876..847cf92da6 100755 --- a/tests/ts/libmount/update-py +++ b/tests/ts/libmount/update-py @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libmount/utils b/tests/ts/libmount/utils index 1fed2a7c0a..21537e50b7 100755 --- a/tests/ts/libmount/utils +++ b/tests/ts/libmount/utils @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/libsmartcols/continuous-json b/tests/ts/libsmartcols/continuous-json index 8456d6b97b..4f4565b697 100755 --- a/tests/ts/libsmartcols/continuous-json +++ b/tests/ts/libsmartcols/continuous-json @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libsmartcols/filter b/tests/ts/libsmartcols/filter index 2025ef54ee..c533add2e8 100755 --- a/tests/ts/libsmartcols/filter +++ b/tests/ts/libsmartcols/filter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libsmartcols/fromfile b/tests/ts/libsmartcols/fromfile index c11140cb72..d56b4de31c 100755 --- a/tests/ts/libsmartcols/fromfile +++ b/tests/ts/libsmartcols/fromfile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libsmartcols/termreduce-loop b/tests/ts/libsmartcols/termreduce-loop index a34e523dc3..13a02f85f4 100755 --- a/tests/ts/libsmartcols/termreduce-loop +++ b/tests/ts/libsmartcols/termreduce-loop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/libsmartcols/title b/tests/ts/libsmartcols/title index 5a1c178da3..ac0e880683 100755 --- a/tests/ts/libsmartcols/title +++ b/tests/ts/libsmartcols/title @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/line/line b/tests/ts/line/line index 97a415c57b..03d0484f9e 100755 --- a/tests/ts/line/line +++ b/tests/ts/line/line @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/logger/errors b/tests/ts/logger/errors index b90088ab86..166af7a6a4 100755 --- a/tests/ts/logger/errors +++ b/tests/ts/logger/errors @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2015 Sami Kerola diff --git a/tests/ts/logger/formats b/tests/ts/logger/formats index 0c46b693b6..b5fe57e7d6 100755 --- a/tests/ts/logger/formats +++ b/tests/ts/logger/formats @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2015 Sami Kerola diff --git a/tests/ts/logger/journald b/tests/ts/logger/journald index abed3e7c3d..f15366640e 100755 --- a/tests/ts/logger/journald +++ b/tests/ts/logger/journald @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2015 Sami Kerola diff --git a/tests/ts/logger/options b/tests/ts/logger/options index c5a4c3617c..52e2b397ea 100755 --- a/tests/ts/logger/options +++ b/tests/ts/logger/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2015 Sami Kerola diff --git a/tests/ts/login/islocal b/tests/ts/login/islocal index 013999e0cb..42b2912edf 100755 --- a/tests/ts/login/islocal +++ b/tests/ts/login/islocal @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2008 James Youngman diff --git a/tests/ts/login/logindefs b/tests/ts/login/logindefs index 2ab9ce46c9..21280aa9ec 100755 --- a/tests/ts/login/logindefs +++ b/tests/ts/login/logindefs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2011 Karel Zak # diff --git a/tests/ts/look/separator b/tests/ts/look/separator index d32a3432c1..aed1c58e3d 100755 --- a/tests/ts/look/separator +++ b/tests/ts/look/separator @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/losetup/losetup b/tests/ts/losetup/losetup index f490013f7d..9ee4786680 100755 --- a/tests/ts/losetup/losetup +++ b/tests/ts/losetup/losetup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2013 Karel Zak diff --git a/tests/ts/losetup/losetup-blkdev b/tests/ts/losetup/losetup-blkdev index 93eb7323d1..db56b6db40 100755 --- a/tests/ts/losetup/losetup-blkdev +++ b/tests/ts/losetup/losetup-blkdev @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2013 Karel Zak diff --git a/tests/ts/losetup/losetup-loop b/tests/ts/losetup/losetup-loop index d6ba902dec..11af74ac04 100755 --- a/tests/ts/losetup/losetup-loop +++ b/tests/ts/losetup/losetup-loop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Stanislav Brabec diff --git a/tests/ts/lsblk/lsblk b/tests/ts/lsblk/lsblk index 5c5a39ce7c..00d98d4676 100755 --- a/tests/ts/lsblk/lsblk +++ b/tests/ts/lsblk/lsblk @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2018 Karel Zak # diff --git a/tests/ts/lsblk/mk-input.sh b/tests/ts/lsblk/mk-input.sh index 2bbd9e3501..019b8e4a9f 100755 --- a/tests/ts/lsblk/mk-input.sh +++ b/tests/ts/lsblk/mk-input.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2018 Karel Zak # diff --git a/tests/ts/lsclocks/lsclocks b/tests/ts/lsclocks/lsclocks index 23f210d575..9a6fdab2da 100755 --- a/tests/ts/lsclocks/lsclocks +++ b/tests/ts/lsclocks/lsclocks @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2023 Thomas Weißschuh # diff --git a/tests/ts/lscpu/lscpu b/tests/ts/lscpu/lscpu index 56b1684cd7..0ef1d99983 100755 --- a/tests/ts/lscpu/lscpu +++ b/tests/ts/lscpu/lscpu @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2008 Cai Qian # diff --git a/tests/ts/lscpu/mk-input.sh b/tests/ts/lscpu/mk-input.sh index a19bad3739..6ebc704da4 100755 --- a/tests/ts/lscpu/mk-input.sh +++ b/tests/ts/lscpu/mk-input.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2008-2009 Karel Zak # diff --git a/tests/ts/lsfd/assoc-pidfs b/tests/ts/lsfd/assoc-pidfs index f8576a8b38..446c2396fd 100755 --- a/tests/ts/lsfd/assoc-pidfs +++ b/tests/ts/lsfd/assoc-pidfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-ainodeclass b/tests/ts/lsfd/column-ainodeclass index 01b5d6891c..e95c91d78c 100755 --- a/tests/ts/lsfd/column-ainodeclass +++ b/tests/ts/lsfd/column-ainodeclass @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-deleted b/tests/ts/lsfd/column-deleted index 128cd0e8a5..f7a1bec210 100755 --- a/tests/ts/lsfd/column-deleted +++ b/tests/ts/lsfd/column-deleted @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-kthread b/tests/ts/lsfd/column-kthread index 2238ade146..6507c6adb5 100755 --- a/tests/ts/lsfd/column-kthread +++ b/tests/ts/lsfd/column-kthread @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-mntid b/tests/ts/lsfd/column-mntid index 3765ac618c..9b82ac8639 100755 --- a/tests/ts/lsfd/column-mntid +++ b/tests/ts/lsfd/column-mntid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-mntid-nonroot b/tests/ts/lsfd/column-mntid-nonroot index 3e8ecdb93d..08a9510c77 100755 --- a/tests/ts/lsfd/column-mntid-nonroot +++ b/tests/ts/lsfd/column-mntid-nonroot @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-name b/tests/ts/lsfd/column-name index 00b47c6bb3..572d8e8a54 100755 --- a/tests/ts/lsfd/column-name +++ b/tests/ts/lsfd/column-name @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-source b/tests/ts/lsfd/column-source index a74f9defaf..6f3dfb128d 100755 --- a/tests/ts/lsfd/column-source +++ b/tests/ts/lsfd/column-source @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-source-btrfs b/tests/ts/lsfd/column-source-btrfs index fcc63165a0..e2cd2bdbec 100755 --- a/tests/ts/lsfd/column-source-btrfs +++ b/tests/ts/lsfd/column-source-btrfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-source-with-root b/tests/ts/lsfd/column-source-with-root index c00ee155c6..b023c320a3 100755 --- a/tests/ts/lsfd/column-source-with-root +++ b/tests/ts/lsfd/column-source-with-root @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-type b/tests/ts/lsfd/column-type index 73dab873af..b0bdfc25e3 100755 --- a/tests/ts/lsfd/column-type +++ b/tests/ts/lsfd/column-type @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/column-xmode b/tests/ts/lsfd/column-xmode index 2a4ab0f16c..1c897aa149 100755 --- a/tests/ts/lsfd/column-xmode +++ b/tests/ts/lsfd/column-xmode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/error-eaccess b/tests/ts/lsfd/error-eaccess index 0bf0774643..675eedf923 100755 --- a/tests/ts/lsfd/error-eaccess +++ b/tests/ts/lsfd/error-eaccess @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/error-eperm b/tests/ts/lsfd/error-eperm index 6d2c179707..0ad99290d0 100755 --- a/tests/ts/lsfd/error-eperm +++ b/tests/ts/lsfd/error-eperm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/filter-broken-exp b/tests/ts/lsfd/filter-broken-exp index 1854e508ea..95f3aa87bb 100755 --- a/tests/ts/lsfd/filter-broken-exp +++ b/tests/ts/lsfd/filter-broken-exp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/filter-floating-point-nums b/tests/ts/lsfd/filter-floating-point-nums index f7d1375927..715952794f 100755 --- a/tests/ts/lsfd/filter-floating-point-nums +++ b/tests/ts/lsfd/filter-floating-point-nums @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/lsfd-functions.bash b/tests/ts/lsfd/lsfd-functions.bash index c8cb6be40f..9dd605b7bf 100644 --- a/tests/ts/lsfd/lsfd-functions.bash +++ b/tests/ts/lsfd/lsfd-functions.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-bpf-map b/tests/ts/lsfd/mkfds-bpf-map index d4fb8e7afd..daf2035094 100755 --- a/tests/ts/lsfd/mkfds-bpf-map +++ b/tests/ts/lsfd/mkfds-bpf-map @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-bpf-prog b/tests/ts/lsfd/mkfds-bpf-prog index c7ef895e4d..79fe8e760c 100755 --- a/tests/ts/lsfd/mkfds-bpf-prog +++ b/tests/ts/lsfd/mkfds-bpf-prog @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-cdev-tun b/tests/ts/lsfd/mkfds-cdev-tun index 7d1be284a2..37482aadbf 100755 --- a/tests/ts/lsfd/mkfds-cdev-tun +++ b/tests/ts/lsfd/mkfds-cdev-tun @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-directory b/tests/ts/lsfd/mkfds-directory index 2e0ac24c0b..567ab980ba 100755 --- a/tests/ts/lsfd/mkfds-directory +++ b/tests/ts/lsfd/mkfds-directory @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-eventfd b/tests/ts/lsfd/mkfds-eventfd index d21b11252c..f2ca428aa5 100755 --- a/tests/ts/lsfd/mkfds-eventfd +++ b/tests/ts/lsfd/mkfds-eventfd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-eventpoll b/tests/ts/lsfd/mkfds-eventpoll index 230d6c480d..f99688ea37 100755 --- a/tests/ts/lsfd/mkfds-eventpoll +++ b/tests/ts/lsfd/mkfds-eventpoll @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-foreign-sockets b/tests/ts/lsfd/mkfds-foreign-sockets index 2fabdb4e5b..e139900d2e 100755 --- a/tests/ts/lsfd/mkfds-foreign-sockets +++ b/tests/ts/lsfd/mkfds-foreign-sockets @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-inotify b/tests/ts/lsfd/mkfds-inotify index a44fd77d16..6822c4ddec 100755 --- a/tests/ts/lsfd/mkfds-inotify +++ b/tests/ts/lsfd/mkfds-inotify @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-inotify-btrfs b/tests/ts/lsfd/mkfds-inotify-btrfs index fe0ac237ad..a57d477db9 100755 --- a/tests/ts/lsfd/mkfds-inotify-btrfs +++ b/tests/ts/lsfd/mkfds-inotify-btrfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-mapped-packet-socket b/tests/ts/lsfd/mkfds-mapped-packet-socket index ab1f72cc0a..61c2f51d7d 100755 --- a/tests/ts/lsfd/mkfds-mapped-packet-socket +++ b/tests/ts/lsfd/mkfds-mapped-packet-socket @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-mmap-masked-file b/tests/ts/lsfd/mkfds-mmap-masked-file index ff29a88b10..0ba00f557e 100755 --- a/tests/ts/lsfd/mkfds-mmap-masked-file +++ b/tests/ts/lsfd/mkfds-mmap-masked-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-mqueue b/tests/ts/lsfd/mkfds-mqueue index bd2213263b..c725625b58 100755 --- a/tests/ts/lsfd/mkfds-mqueue +++ b/tests/ts/lsfd/mkfds-mqueue @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-multiplexing b/tests/ts/lsfd/mkfds-multiplexing index a53f6eb122..2b5795d61d 100755 --- a/tests/ts/lsfd/mkfds-multiplexing +++ b/tests/ts/lsfd/mkfds-multiplexing @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-netlink-groups b/tests/ts/lsfd/mkfds-netlink-groups index f16e6d1bec..d16871fe05 100755 --- a/tests/ts/lsfd/mkfds-netlink-groups +++ b/tests/ts/lsfd/mkfds-netlink-groups @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-netlink-protocol b/tests/ts/lsfd/mkfds-netlink-protocol index 9c1496601b..3cbb1bb368 100755 --- a/tests/ts/lsfd/mkfds-netlink-protocol +++ b/tests/ts/lsfd/mkfds-netlink-protocol @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-netns b/tests/ts/lsfd/mkfds-netns index ddd68deb0c..96e3cc59fc 100755 --- a/tests/ts/lsfd/mkfds-netns +++ b/tests/ts/lsfd/mkfds-netns @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-pidfd b/tests/ts/lsfd/mkfds-pidfd index 9370d337c2..a0b3815296 100755 --- a/tests/ts/lsfd/mkfds-pidfd +++ b/tests/ts/lsfd/mkfds-pidfd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-ping b/tests/ts/lsfd/mkfds-ping index 2baafdeb4e..06098f6267 100755 --- a/tests/ts/lsfd/mkfds-ping +++ b/tests/ts/lsfd/mkfds-ping @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-pipe-no-fork b/tests/ts/lsfd/mkfds-pipe-no-fork index d3ca46c3ba..9e279ce62a 100755 --- a/tests/ts/lsfd/mkfds-pipe-no-fork +++ b/tests/ts/lsfd/mkfds-pipe-no-fork @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-pty b/tests/ts/lsfd/mkfds-pty index cc781ebe1e..afe03be5ef 100755 --- a/tests/ts/lsfd/mkfds-pty +++ b/tests/ts/lsfd/mkfds-pty @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-raw b/tests/ts/lsfd/mkfds-raw index 0ff246f5e1..37319c8425 100755 --- a/tests/ts/lsfd/mkfds-raw +++ b/tests/ts/lsfd/mkfds-raw @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-raw6 b/tests/ts/lsfd/mkfds-raw6 index d50a5d8731..fe750dfe84 100755 --- a/tests/ts/lsfd/mkfds-raw6 +++ b/tests/ts/lsfd/mkfds-raw6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-ro-block-device b/tests/ts/lsfd/mkfds-ro-block-device index 7b14630022..e00dff1e9e 100755 --- a/tests/ts/lsfd/mkfds-ro-block-device +++ b/tests/ts/lsfd/mkfds-ro-block-device @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-ro-regular-file b/tests/ts/lsfd/mkfds-ro-regular-file index 367a07d560..6fa0683e9a 100755 --- a/tests/ts/lsfd/mkfds-ro-regular-file +++ b/tests/ts/lsfd/mkfds-ro-regular-file @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-rw-character-device b/tests/ts/lsfd/mkfds-rw-character-device index 3df29447e9..f8b71dcd2c 100755 --- a/tests/ts/lsfd/mkfds-rw-character-device +++ b/tests/ts/lsfd/mkfds-rw-character-device @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-signalfd b/tests/ts/lsfd/mkfds-signalfd index ecc737968a..0e4d1b94ce 100755 --- a/tests/ts/lsfd/mkfds-signalfd +++ b/tests/ts/lsfd/mkfds-signalfd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-socketpair b/tests/ts/lsfd/mkfds-socketpair index 3ef60c79e4..accf17a26a 100755 --- a/tests/ts/lsfd/mkfds-socketpair +++ b/tests/ts/lsfd/mkfds-socketpair @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-symlink b/tests/ts/lsfd/mkfds-symlink index 42beaec7a8..f575315f7e 100755 --- a/tests/ts/lsfd/mkfds-symlink +++ b/tests/ts/lsfd/mkfds-symlink @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-tcp b/tests/ts/lsfd/mkfds-tcp index 666cf6ac11..20479b9222 100755 --- a/tests/ts/lsfd/mkfds-tcp +++ b/tests/ts/lsfd/mkfds-tcp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-tcp-bare b/tests/ts/lsfd/mkfds-tcp-bare index e59e4fea50..32a893091b 100755 --- a/tests/ts/lsfd/mkfds-tcp-bare +++ b/tests/ts/lsfd/mkfds-tcp-bare @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-tcp6 b/tests/ts/lsfd/mkfds-tcp6 index 414777f4a0..beb7b7617b 100755 --- a/tests/ts/lsfd/mkfds-tcp6 +++ b/tests/ts/lsfd/mkfds-tcp6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-timerfd b/tests/ts/lsfd/mkfds-timerfd index d2e0b8a535..7962e52bbc 100755 --- a/tests/ts/lsfd/mkfds-timerfd +++ b/tests/ts/lsfd/mkfds-timerfd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-timerfd-alarm b/tests/ts/lsfd/mkfds-timerfd-alarm index c7e6650c8b..2d4be2e9d1 100755 --- a/tests/ts/lsfd/mkfds-timerfd-alarm +++ b/tests/ts/lsfd/mkfds-timerfd-alarm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-udp b/tests/ts/lsfd/mkfds-udp index 3d1b272538..041f70fbe5 100755 --- a/tests/ts/lsfd/mkfds-udp +++ b/tests/ts/lsfd/mkfds-udp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-udp6 b/tests/ts/lsfd/mkfds-udp6 index 59b1c06a20..59163d6b1d 100755 --- a/tests/ts/lsfd/mkfds-udp6 +++ b/tests/ts/lsfd/mkfds-udp6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-unix-dgram b/tests/ts/lsfd/mkfds-unix-dgram index 4b75198938..ec83769a0c 100755 --- a/tests/ts/lsfd/mkfds-unix-dgram +++ b/tests/ts/lsfd/mkfds-unix-dgram @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-unix-in-netns b/tests/ts/lsfd/mkfds-unix-in-netns index 3078adf31d..5f1e070464 100755 --- a/tests/ts/lsfd/mkfds-unix-in-netns +++ b/tests/ts/lsfd/mkfds-unix-in-netns @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-unix-stream b/tests/ts/lsfd/mkfds-unix-stream index 3c31443dbe..d82282c247 100755 --- a/tests/ts/lsfd/mkfds-unix-stream +++ b/tests/ts/lsfd/mkfds-unix-stream @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag b/tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag index d3afa9cf91..dfa9d61a2d 100755 --- a/tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag +++ b/tests/ts/lsfd/mkfds-unix-stream-requiring-sockdiag @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Masatake YAMATO # diff --git a/tests/ts/lsfd/mkfds-vsock b/tests/ts/lsfd/mkfds-vsock index fb926c9994..95d10a6804 100755 --- a/tests/ts/lsfd/mkfds-vsock +++ b/tests/ts/lsfd/mkfds-vsock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/mount-over-same-path b/tests/ts/lsfd/mount-over-same-path index bc29793e35..c8be01d577 100755 --- a/tests/ts/lsfd/mount-over-same-path +++ b/tests/ts/lsfd/mount-over-same-path @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 Masatake YAMATO # diff --git a/tests/ts/lsfd/option-hyperlink b/tests/ts/lsfd/option-hyperlink index 12e9caa035..7f8823c666 100755 --- a/tests/ts/lsfd/option-hyperlink +++ b/tests/ts/lsfd/option-hyperlink @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsfd/option-inet b/tests/ts/lsfd/option-inet index f679f121de..54982ffe9a 100755 --- a/tests/ts/lsfd/option-inet +++ b/tests/ts/lsfd/option-inet @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lsfd/option-pid b/tests/ts/lsfd/option-pid index 003b624ae3..eb8420bbfe 100755 --- a/tests/ts/lsfd/option-pid +++ b/tests/ts/lsfd/option-pid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsfd/option-summary b/tests/ts/lsfd/option-summary index 9813901b31..739b7ec7e9 100755 --- a/tests/ts/lsfd/option-summary +++ b/tests/ts/lsfd/option-summary @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lslocks/filter b/tests/ts/lslocks/filter index ab35d8b8ba..ed5e234fa6 100755 --- a/tests/ts/lslocks/filter +++ b/tests/ts/lslocks/filter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/lslocks/lslocks b/tests/ts/lslocks/lslocks index a9ef69a35e..6b4511847f 100755 --- a/tests/ts/lslocks/lslocks +++ b/tests/ts/lslocks/lslocks @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Masatake YAMATO # diff --git a/tests/ts/lslogins/checkuser b/tests/ts/lslogins/checkuser index 035dbad563..b6b14e0c67 100755 --- a/tests/ts/lslogins/checkuser +++ b/tests/ts/lslogins/checkuser @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="read logins" diff --git a/tests/ts/lslogins/json_mode b/tests/ts/lslogins/json_mode index 95a6aff67f..3ca96d3959 100755 --- a/tests/ts/lslogins/json_mode +++ b/tests/ts/lslogins/json_mode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="test JSON output mode" diff --git a/tests/ts/lsmem/lsmem b/tests/ts/lsmem/lsmem index 179f0ef157..e5b4dbfb65 100755 --- a/tests/ts/lsmem/lsmem +++ b/tests/ts/lsmem/lsmem @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/lsmem/mk-input.sh b/tests/ts/lsmem/mk-input.sh index bbdfff0515..f5130521ee 100755 --- a/tests/ts/lsmem/mk-input.sh +++ b/tests/ts/lsmem/mk-input.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script makes a copy of relevant files from /sys. # The files are useful for lsmem(1) regression tests. diff --git a/tests/ts/lsns/filedesc b/tests/ts/lsns/filedesc index 40eac7d415..bc2785c9fd 100755 --- a/tests/ts/lsns/filedesc +++ b/tests/ts/lsns/filedesc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsns/filter b/tests/ts/lsns/filter index 8dd4a5377b..b93d400e09 100755 --- a/tests/ts/lsns/filter +++ b/tests/ts/lsns/filter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns index c4b1f2db57..d57d24549d 100755 --- a/tests/ts/lsns/ioctl_ns +++ b/tests/ts/lsns/ioctl_ns @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Masatake YAMATO # diff --git a/tests/ts/lsns/netns-from-sock b/tests/ts/lsns/netns-from-sock index 69947d7120..57a5a70a39 100755 --- a/tests/ts/lsns/netns-from-sock +++ b/tests/ts/lsns/netns-from-sock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/lsns/netnsid b/tests/ts/lsns/netnsid index 19f01f6147..c50ef6e5b1 100755 --- a/tests/ts/lsns/netnsid +++ b/tests/ts/lsns/netnsid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2017 Masatake YAMATO # diff --git a/tests/ts/lsns/netnsid-for-persistent-namespaces b/tests/ts/lsns/netnsid-for-persistent-namespaces index 49e751e6c3..20490183d7 100755 --- a/tests/ts/lsns/netnsid-for-persistent-namespaces +++ b/tests/ts/lsns/netnsid-for-persistent-namespaces @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/lsns/nsfs b/tests/ts/lsns/nsfs index b01a0f6b21..32863c3759 100755 --- a/tests/ts/lsns/nsfs +++ b/tests/ts/lsns/nsfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2017 Masatake YAMATO # diff --git a/tests/ts/mcookie/mcookie b/tests/ts/mcookie/mcookie index 2d91925e5b..d6b72a18b3 100755 --- a/tests/ts/mcookie/mcookie +++ b/tests/ts/mcookie/mcookie @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/md5/md5 b/tests/ts/md5/md5 index 3c89b73d69..88808e1f81 100755 --- a/tests/ts/md5/md5 +++ b/tests/ts/md5/md5 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/minix/fsck b/tests/ts/minix/fsck index 9d4aa0d0b8..a08681b4f9 100755 --- a/tests/ts/minix/fsck +++ b/tests/ts/minix/fsck @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak # diff --git a/tests/ts/minix/fsck-images b/tests/ts/minix/fsck-images index 17d77049b9..8e61a6d770 100755 --- a/tests/ts/minix/fsck-images +++ b/tests/ts/minix/fsck-images @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/minix/mkfs b/tests/ts/minix/mkfs index e5ee5968aa..a34ac5e71e 100755 --- a/tests/ts/minix/mkfs +++ b/tests/ts/minix/mkfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak # diff --git a/tests/ts/misc/boilerplate b/tests/ts/misc/boilerplate index d795ec21e0..f073e96468 100755 --- a/tests/ts/misc/boilerplate +++ b/tests/ts/misc/boilerplate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2023 Thomas Weißschuh # diff --git a/tests/ts/misc/canonicalize b/tests/ts/misc/canonicalize index 2e111659c9..b72593294a 100755 --- a/tests/ts/misc/canonicalize +++ b/tests/ts/misc/canonicalize @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2025 Karel Zak # diff --git a/tests/ts/misc/colors b/tests/ts/misc/colors index bae7599ace..f87abeb7e8 100755 --- a/tests/ts/misc/colors +++ b/tests/ts/misc/colors @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later diff --git a/tests/ts/misc/configs b/tests/ts/misc/configs index 1457d212c0..ecaff960cf 100755 --- a/tests/ts/misc/configs +++ b/tests/ts/misc/configs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/misc/mbsencode b/tests/ts/misc/mbsencode index 39f9510a5d..4e0412f9bb 100755 --- a/tests/ts/misc/mbsencode +++ b/tests/ts/misc/mbsencode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2018 Vaclav Dolezal diff --git a/tests/ts/misc/optstr b/tests/ts/misc/optstr index 9277a8f4b6..bf57adfbf2 100755 --- a/tests/ts/misc/optstr +++ b/tests/ts/misc/optstr @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="optstr" diff --git a/tests/ts/misc/strtobool b/tests/ts/misc/strtobool index 3ada5242ae..30fcf554c7 100755 --- a/tests/ts/misc/strtobool +++ b/tests/ts/misc/strtobool @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 Karel Zak diff --git a/tests/ts/misc/strtosize b/tests/ts/misc/strtosize index e6233d536b..ea9a9ea8cf 100755 --- a/tests/ts/misc/strtosize +++ b/tests/ts/misc/strtosize @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Karel Zak diff --git a/tests/ts/misc/time_t b/tests/ts/misc/time_t index b0ced51e11..39c53ae5a9 100755 --- a/tests/ts/misc/time_t +++ b/tests/ts/misc/time_t @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2023 Thomas Weißschuh # diff --git a/tests/ts/mkswap/mkswap b/tests/ts/mkswap/mkswap index c3ae302b63..b4e27042c9 100755 --- a/tests/ts/mkswap/mkswap +++ b/tests/ts/mkswap/mkswap @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Thomas Weißschuh diff --git a/tests/ts/more/regexp b/tests/ts/more/regexp index c6feeee1f2..699c283604 100755 --- a/tests/ts/more/regexp +++ b/tests/ts/more/regexp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/more/squeeze b/tests/ts/more/squeeze index f481e45abc..a319a969f4 100755 --- a/tests/ts/more/squeeze +++ b/tests/ts/more/squeeze @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/mount/complex b/tests/ts/mount/complex index 8718ab1f05..6cb3be2d1e 100755 --- a/tests/ts/mount/complex +++ b/tests/ts/mount/complex @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2022 Karel Zak diff --git a/tests/ts/mount/devname b/tests/ts/mount/devname index fcfa926728..8c06730c8d 100755 --- a/tests/ts/mount/devname +++ b/tests/ts/mount/devname @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/dm-verity b/tests/ts/mount/dm-verity index 9987cb8a11..863cbcf24b 100755 --- a/tests/ts/mount/dm-verity +++ b/tests/ts/mount/dm-verity @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Vojtech Eichler diff --git a/tests/ts/mount/fallback b/tests/ts/mount/fallback index 7e79975ffd..afa4d74981 100755 --- a/tests/ts/mount/fallback +++ b/tests/ts/mount/fallback @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="fstab-fallback" diff --git a/tests/ts/mount/fslists b/tests/ts/mount/fslists index c9458af1af..8b7e25b2a4 100755 --- a/tests/ts/mount/fslists +++ b/tests/ts/mount/fslists @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Karel Zak diff --git a/tests/ts/mount/fstab-all b/tests/ts/mount/fstab-all index 666915cb03..9cd4e344b0 100755 --- a/tests/ts/mount/fstab-all +++ b/tests/ts/mount/fstab-all @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2019 Karel Zak diff --git a/tests/ts/mount/fstab-bind b/tests/ts/mount/fstab-bind index 96bfe38f43..3ee3377974 100755 --- a/tests/ts/mount/fstab-bind +++ b/tests/ts/mount/fstab-bind @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="fstab-bind" diff --git a/tests/ts/mount/fstab-broken b/tests/ts/mount/fstab-broken index 5705d14fb1..75b87876d7 100755 --- a/tests/ts/mount/fstab-broken +++ b/tests/ts/mount/fstab-broken @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-btrfs b/tests/ts/mount/fstab-btrfs index 1d65727470..e28b36f792 100755 --- a/tests/ts/mount/fstab-btrfs +++ b/tests/ts/mount/fstab-btrfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Stanislav Brabec diff --git a/tests/ts/mount/fstab-devname b/tests/ts/mount/fstab-devname index d1072b7b40..99570914bb 100755 --- a/tests/ts/mount/fstab-devname +++ b/tests/ts/mount/fstab-devname @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-devname2label b/tests/ts/mount/fstab-devname2label index 23331873a2..d72cbb1160 100755 --- a/tests/ts/mount/fstab-devname2label +++ b/tests/ts/mount/fstab-devname2label @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-devname2uuid b/tests/ts/mount/fstab-devname2uuid index 2aa0abd19c..256a29371c 100755 --- a/tests/ts/mount/fstab-devname2uuid +++ b/tests/ts/mount/fstab-devname2uuid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-label b/tests/ts/mount/fstab-label index d392501bf4..47e22ff26d 100755 --- a/tests/ts/mount/fstab-label +++ b/tests/ts/mount/fstab-label @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-label2devname b/tests/ts/mount/fstab-label2devname index f628d9f0c8..23fb3d8752 100755 --- a/tests/ts/mount/fstab-label2devname +++ b/tests/ts/mount/fstab-label2devname @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-label2uuid b/tests/ts/mount/fstab-label2uuid index e1b1d8a7b1..40977eae08 100755 --- a/tests/ts/mount/fstab-label2uuid +++ b/tests/ts/mount/fstab-label2uuid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-loop b/tests/ts/mount/fstab-loop index 5e605b1a69..46c9d10224 100755 --- a/tests/ts/mount/fstab-loop +++ b/tests/ts/mount/fstab-loop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2016 Stanislav Brabec diff --git a/tests/ts/mount/fstab-none b/tests/ts/mount/fstab-none index f8088aa27e..8ffae28938 100755 --- a/tests/ts/mount/fstab-none +++ b/tests/ts/mount/fstab-none @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="none" diff --git a/tests/ts/mount/fstab-symlink b/tests/ts/mount/fstab-symlink index 70d12e934e..bf8447ce41 100755 --- a/tests/ts/mount/fstab-symlink +++ b/tests/ts/mount/fstab-symlink @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-uuid b/tests/ts/mount/fstab-uuid index ae863cb1e5..5e0e4b2b18 100755 --- a/tests/ts/mount/fstab-uuid +++ b/tests/ts/mount/fstab-uuid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-uuid2devname b/tests/ts/mount/fstab-uuid2devname index 4f315aef85..290333384a 100755 --- a/tests/ts/mount/fstab-uuid2devname +++ b/tests/ts/mount/fstab-uuid2devname @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/fstab-uuid2label b/tests/ts/mount/fstab-uuid2label index 87fb137571..3810b0cc8b 100755 --- a/tests/ts/mount/fstab-uuid2label +++ b/tests/ts/mount/fstab-uuid2label @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/label b/tests/ts/mount/label index 44f04c77fa..e561043d47 100755 --- a/tests/ts/mount/label +++ b/tests/ts/mount/label @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/move b/tests/ts/mount/move index 073ddc296d..671dcc6d1c 100755 --- a/tests/ts/mount/move +++ b/tests/ts/mount/move @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/regfile b/tests/ts/mount/regfile index c17c687914..877ab39e56 100755 --- a/tests/ts/mount/regfile +++ b/tests/ts/mount/regfile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2011 Karel Zak # This file is part of util-linux. diff --git a/tests/ts/mount/remount b/tests/ts/mount/remount index 4620648ef5..d661fb7d4c 100755 --- a/tests/ts/mount/remount +++ b/tests/ts/mount/remount @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/set_ugid_mode b/tests/ts/mount/set_ugid_mode index 8041354e7f..1e0fcb6635 100755 --- a/tests/ts/mount/set_ugid_mode +++ b/tests/ts/mount/set_ugid_mode @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: 0BSD diff --git a/tests/ts/mount/shared-subtree b/tests/ts/mount/shared-subtree index eb8fceaea8..70f2c97267 100755 --- a/tests/ts/mount/shared-subtree +++ b/tests/ts/mount/shared-subtree @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="shared-subtree" diff --git a/tests/ts/mount/special b/tests/ts/mount/special index 1771f5aac2..2b5c1cbe71 100755 --- a/tests/ts/mount/special +++ b/tests/ts/mount/special @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak @@ -28,7 +28,7 @@ ts_check_test_command "$TS_CMD_UMOUNT" ts_skip_nonroot cat > $MOUNTER <<\EOF -#!/bin/bash +#!/usr/bin/env bash # This util-linux regression test component # It's safe to remove me... # @@ -62,7 +62,7 @@ ts_init_subtest "missing-options" grep -q 'nodev[[:space:]]*tmpfs' /proc/filesystems if [ "$?" == "0" ]; then cat > $MOUNTER < diff --git a/tests/ts/mount/umount-alltargets b/tests/ts/mount/umount-alltargets index 3277d6ec63..52def8d64c 100755 --- a/tests/ts/mount/umount-alltargets +++ b/tests/ts/mount/umount-alltargets @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2013 Karel Zak diff --git a/tests/ts/mount/umount-recursive b/tests/ts/mount/umount-recursive index a099c75ea8..f2ea25f48b 100755 --- a/tests/ts/mount/umount-recursive +++ b/tests/ts/mount/umount-recursive @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2012 Karel Zak diff --git a/tests/ts/mount/uuid b/tests/ts/mount/uuid index 8f0cf9be1f..a641edbec7 100755 --- a/tests/ts/mount/uuid +++ b/tests/ts/mount/uuid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/mount/xnocanon b/tests/ts/mount/xnocanon index 122dfbbf1b..bfd65b0515 100755 --- a/tests/ts/mount/xnocanon +++ b/tests/ts/mount/xnocanon @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Karel Zak diff --git a/tests/ts/mountpoint/mountpoint b/tests/ts/mountpoint/mountpoint index 19e6cfc360..678a039cc7 100755 --- a/tests/ts/mountpoint/mountpoint +++ b/tests/ts/mountpoint/mountpoint @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="mountpoint" diff --git a/tests/ts/namei/logic b/tests/ts/namei/logic index 52ce9ac0b7..53e9f2495f 100755 --- a/tests/ts/namei/logic +++ b/tests/ts/namei/logic @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/nsenter/enter-via-socket b/tests/ts/nsenter/enter-via-socket index 531233d9ae..aa07020c08 100755 --- a/tests/ts/nsenter/enter-via-socket +++ b/tests/ts/nsenter/enter-via-socket @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Masatake YAMATO # diff --git a/tests/ts/partx/partx b/tests/ts/partx/partx index e2021003b5..8b8686ea30 100755 --- a/tests/ts/partx/partx +++ b/tests/ts/partx/partx @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Davidlohr Bueso diff --git a/tests/ts/partx/partx-image b/tests/ts/partx/partx-image index a0ecf2c4f8..9c53aed141 100755 --- a/tests/ts/partx/partx-image +++ b/tests/ts/partx/partx-image @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2010 Davidlohr Bueso diff --git a/tests/ts/paths/built-in b/tests/ts/paths/built-in index 2301ffb329..2eea142ddd 100755 --- a/tests/ts/paths/built-in +++ b/tests/ts/paths/built-in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/pipesz/pipesz b/tests/ts/pipesz/pipesz index e3c31f6117..991eec3fce 100755 --- a/tests/ts/pipesz/pipesz +++ b/tests/ts/pipesz/pipesz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/prlimit/pidfd_ino b/tests/ts/prlimit/pidfd_ino index 39521884af..f08f4baf1f 100755 --- a/tests/ts/prlimit/pidfd_ino +++ b/tests/ts/prlimit/pidfd_ino @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/rename/basic b/tests/ts/rename/basic index 46aa61056f..fd3d74b29e 100755 --- a/tests/ts/rename/basic +++ b/tests/ts/rename/basic @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Sami Kerola diff --git a/tests/ts/rename/exit_codes b/tests/ts/rename/exit_codes index 2f79d55adf..49898a4a50 100755 --- a/tests/ts/rename/exit_codes +++ b/tests/ts/rename/exit_codes @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Sami Kerola diff --git a/tests/ts/rename/overwrite b/tests/ts/rename/overwrite index 96a524a224..9908586376 100755 --- a/tests/ts/rename/overwrite +++ b/tests/ts/rename/overwrite @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2017 Sami Kerola diff --git a/tests/ts/rename/subdir b/tests/ts/rename/subdir index adcc68e55e..bcb3eb418c 100755 --- a/tests/ts/rename/subdir +++ b/tests/ts/rename/subdir @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Sami Kerola diff --git a/tests/ts/rename/symlink b/tests/ts/rename/symlink index 79e38cbb2c..bad23097b4 100755 --- a/tests/ts/rename/symlink +++ b/tests/ts/rename/symlink @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2014 Sami Kerola diff --git a/tests/ts/rev/rev b/tests/ts/rev/rev index 2f43b47b73..0ca44e2e83 100755 --- a/tests/ts/rev/rev +++ b/tests/ts/rev/rev @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/schedutils/cpuset b/tests/ts/schedutils/cpuset index 0e756eef0a..a64257bacd 100755 --- a/tests/ts/schedutils/cpuset +++ b/tests/ts/schedutils/cpuset @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/script/buffering-race b/tests/ts/script/buffering-race index 3c00d96234..b1e811bfcc 100755 --- a/tests/ts/script/buffering-race +++ b/tests/ts/script/buffering-race @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/script/options b/tests/ts/script/options index d864485771..ba7d37d98f 100755 --- a/tests/ts/script/options +++ b/tests/ts/script/options @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/script/race b/tests/ts/script/race index b4d2d8a819..79e87745b2 100755 --- a/tests/ts/script/race +++ b/tests/ts/script/race @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/script/replay b/tests/ts/script/replay index 384c5b3b13..72daf96576 100755 --- a/tests/ts/script/replay +++ b/tests/ts/script/replay @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/setarch/pid-without-show b/tests/ts/setarch/pid-without-show index 5fbf9d0ca5..a1b7e79ab7 100755 --- a/tests/ts/setarch/pid-without-show +++ b/tests/ts/setarch/pid-without-show @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/setarch/setarch b/tests/ts/setarch/setarch index 801e009359..274053e8bb 100755 --- a/tests/ts/setarch/setarch +++ b/tests/ts/setarch/setarch @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/setarch/show-with-pid b/tests/ts/setarch/show-with-pid index b703f150ce..7cdd0fa112 100755 --- a/tests/ts/setarch/show-with-pid +++ b/tests/ts/setarch/show-with-pid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2025 Masatake YAMATO # diff --git a/tests/ts/setpgid/setpgid b/tests/ts/setpgid/setpgid index 40c475443d..ad84f580d9 100755 --- a/tests/ts/setpgid/setpgid +++ b/tests/ts/setpgid/setpgid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/setpriv/landlock b/tests/ts/setpriv/landlock index d4ce5d1f81..a6e85c4376 100755 --- a/tests/ts/setpriv/landlock +++ b/tests/ts/setpriv/landlock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2023 Thomas Weißschuh # diff --git a/tests/ts/setpriv/seccomp b/tests/ts/setpriv/seccomp index 119f3bc0d7..501760cc5d 100755 --- a/tests/ts/setpriv/seccomp +++ b/tests/ts/setpriv/seccomp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2023 Thomas Weißschuh # diff --git a/tests/ts/setsid/setsid b/tests/ts/setsid/setsid index 9f04717a7f..ab3f51de96 100755 --- a/tests/ts/setsid/setsid +++ b/tests/ts/setsid/setsid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/sfdisk/dos b/tests/ts/sfdisk/dos index 108d1309d1..e62751acfd 100755 --- a/tests/ts/sfdisk/dos +++ b/tests/ts/sfdisk/dos @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/dump b/tests/ts/sfdisk/dump index 3311d3144f..f9442cff84 100755 --- a/tests/ts/sfdisk/dump +++ b/tests/ts/sfdisk/dump @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/gpt b/tests/ts/sfdisk/gpt index 273d965e98..9b0d78de53 100755 --- a/tests/ts/sfdisk/gpt +++ b/tests/ts/sfdisk/gpt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/movedata b/tests/ts/sfdisk/movedata index 5b5232cf8a..2f9b2f8ea6 100755 --- a/tests/ts/sfdisk/movedata +++ b/tests/ts/sfdisk/movedata @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/resize b/tests/ts/sfdisk/resize index 664301d605..ab37fc8b4f 100755 --- a/tests/ts/sfdisk/resize +++ b/tests/ts/sfdisk/resize @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/script b/tests/ts/sfdisk/script index 1e4bb2fc0c..c2117eb08d 100755 --- a/tests/ts/sfdisk/script +++ b/tests/ts/sfdisk/script @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. diff --git a/tests/ts/sfdisk/wipe b/tests/ts/sfdisk/wipe index fd155251c1..9675a30ae8 100755 --- a/tests/ts/sfdisk/wipe +++ b/tests/ts/sfdisk/wipe @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of util-linux. # diff --git a/tests/ts/sha1/sha1 b/tests/ts/sha1/sha1 index 7d2413cff9..3a344cdecc 100755 --- a/tests/ts/sha1/sha1 +++ b/tests/ts/sha1/sha1 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/su/environ b/tests/ts/su/environ index cf271fd327..995bcca7a5 100755 --- a/tests/ts/su/environ +++ b/tests/ts/su/environ @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2024 Karel Zak # diff --git a/tests/ts/su/group b/tests/ts/su/group index d3294fd729..157dd8249e 100755 --- a/tests/ts/su/group +++ b/tests/ts/su/group @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/su/shell b/tests/ts/su/shell index dc77b0b4fb..34144727b5 100755 --- a/tests/ts/su/shell +++ b/tests/ts/su/shell @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/swaplabel/swaplabel b/tests/ts/swaplabel/swaplabel index 6bcc12ab14..3139f5167c 100755 --- a/tests/ts/swaplabel/swaplabel +++ b/tests/ts/swaplabel/swaplabel @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/swapon/devname b/tests/ts/swapon/devname index f4f9c16ca5..1c84317dba 100755 --- a/tests/ts/swapon/devname +++ b/tests/ts/swapon/devname @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/swapon/fixpgsz b/tests/ts/swapon/fixpgsz index 68e17c1209..c954ba6114 100755 --- a/tests/ts/swapon/fixpgsz +++ b/tests/ts/swapon/fixpgsz @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="fix page size" diff --git a/tests/ts/swapon/fixsig b/tests/ts/swapon/fixsig index 9648e6d641..7deb703398 100755 --- a/tests/ts/swapon/fixsig +++ b/tests/ts/swapon/fixsig @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="fix signature" diff --git a/tests/ts/swapon/label b/tests/ts/swapon/label index 0931fe0d31..b77a94d3e9 100755 --- a/tests/ts/swapon/label +++ b/tests/ts/swapon/label @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/swapon/uuid b/tests/ts/swapon/uuid index 724cec261b..bf6a52e0e4 100755 --- a/tests/ts/swapon/uuid +++ b/tests/ts/swapon/uuid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2007 Karel Zak diff --git a/tests/ts/ul/basic b/tests/ts/ul/basic index 56138ab755..160a44f354 100755 --- a/tests/ts/ul/basic +++ b/tests/ts/ul/basic @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2020 Sami Kerola diff --git a/tests/ts/ul/ul b/tests/ts/ul/ul index 92118de1b5..8acb5594c8 100755 --- a/tests/ts/ul/ul +++ b/tests/ts/ul/ul @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/unshare/clear-env b/tests/ts/unshare/clear-env index 895ee5a8e3..5064a7be28 100755 --- a/tests/ts/unshare/clear-env +++ b/tests/ts/unshare/clear-env @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/unshare/forward-signals b/tests/ts/unshare/forward-signals index 042ee0a58b..6c0b4e6c3d 100755 --- a/tests/ts/unshare/forward-signals +++ b/tests/ts/unshare/forward-signals @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 util-linux contributors diff --git a/tests/ts/unshare/forward-signals-kill-child b/tests/ts/unshare/forward-signals-kill-child index 766f9fe567..77f80aeb7d 100755 --- a/tests/ts/unshare/forward-signals-kill-child +++ b/tests/ts/unshare/forward-signals-kill-child @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2026 util-linux contributors diff --git a/tests/ts/utmp/last b/tests/ts/utmp/last index b125ce94bd..f1176c8c44 100755 --- a/tests/ts/utmp/last +++ b/tests/ts/utmp/last @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/last-ipv6 b/tests/ts/utmp/last-ipv6 index 45676126fe..4eec017d0d 100755 --- a/tests/ts/utmp/last-ipv6 +++ b/tests/ts/utmp/last-ipv6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-circle b/tests/ts/utmp/utmpdump-circle index e8464b85b6..719c7adb03 100755 --- a/tests/ts/utmp/utmpdump-circle +++ b/tests/ts/utmp/utmpdump-circle @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-subsecond b/tests/ts/utmp/utmpdump-subsecond index d0d3289383..8ccd1713a4 100755 --- a/tests/ts/utmp/utmpdump-subsecond +++ b/tests/ts/utmp/utmpdump-subsecond @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-tobin b/tests/ts/utmp/utmpdump-tobin index 556ad30459..c7a6b766d4 100755 --- a/tests/ts/utmp/utmpdump-tobin +++ b/tests/ts/utmp/utmpdump-tobin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-tobin-ipv6 b/tests/ts/utmp/utmpdump-tobin-ipv6 index 85254b7e28..3c822ee98e 100755 --- a/tests/ts/utmp/utmpdump-tobin-ipv6 +++ b/tests/ts/utmp/utmpdump-tobin-ipv6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-totxt b/tests/ts/utmp/utmpdump-totxt index 7097fddf81..59c8ce18fb 100755 --- a/tests/ts/utmp/utmpdump-totxt +++ b/tests/ts/utmp/utmpdump-totxt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/utmp/utmpdump-totxt-ipv6 b/tests/ts/utmp/utmpdump-totxt-ipv6 index 84ab5705a6..277d682ffe 100755 --- a/tests/ts/utmp/utmpdump-totxt-ipv6 +++ b/tests/ts/utmp/utmpdump-totxt-ipv6 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuid/namespace b/tests/ts/uuid/namespace index 7bfbe99af5..0eca918a2a 100755 --- a/tests/ts/uuid/namespace +++ b/tests/ts/uuid/namespace @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2009 Karel Zak diff --git a/tests/ts/uuid/uuid_parser b/tests/ts/uuid/uuid_parser index c286f6c438..cf42827a69 100755 --- a/tests/ts/uuid/uuid_parser +++ b/tests/ts/uuid/uuid_parser @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuidd/uuidd b/tests/ts/uuidd/uuidd index a768b5a2fe..04f02f431a 100755 --- a/tests/ts/uuidd/uuidd +++ b/tests/ts/uuidd/uuidd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuidgen/oids b/tests/ts/uuidgen/oids index ec9c29d044..9005877662 100755 --- a/tests/ts/uuidgen/oids +++ b/tests/ts/uuidgen/oids @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuidgen/uuidgen b/tests/ts/uuidgen/uuidgen index 48fab12f7b..1f58a0b9c9 100755 --- a/tests/ts/uuidgen/uuidgen +++ b/tests/ts/uuidgen/uuidgen @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuidparse/time b/tests/ts/uuidparse/time index f8d283d819..f167519ed6 100755 --- a/tests/ts/uuidparse/time +++ b/tests/ts/uuidparse/time @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/uuidparse/uuidparse b/tests/ts/uuidparse/uuidparse index f131986ba1..a03f718c2f 100755 --- a/tests/ts/uuidparse/uuidparse +++ b/tests/ts/uuidparse/uuidparse @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/waitpid/pidfd-ino b/tests/ts/waitpid/pidfd-ino index e572165bfa..060e08eb67 100755 --- a/tests/ts/waitpid/pidfd-ino +++ b/tests/ts/waitpid/pidfd-ino @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/waitpid/waitpid b/tests/ts/waitpid/waitpid index ee97e54066..d7f59c6a5b 100755 --- a/tests/ts/waitpid/waitpid +++ b/tests/ts/waitpid/waitpid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2022 Thomas Weißschuh # diff --git a/tests/ts/whereis/whereis b/tests/ts/whereis/whereis index a799be0314..02df90af1c 100755 --- a/tests/ts/whereis/whereis +++ b/tests/ts/whereis/whereis @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tests/ts/wipefs/signatures b/tests/ts/wipefs/signatures index 7749588366..e113d895ee 100755 --- a/tests/ts/wipefs/signatures +++ b/tests/ts/wipefs/signatures @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2023 Thomas Weißschuh diff --git a/tests/ts/wipefs/wipefs b/tests/ts/wipefs/wipefs index 0f0f8d8b14..3e25134be3 100755 --- a/tests/ts/wipefs/wipefs +++ b/tests/ts/wipefs/wipefs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TS_TOPDIR="${0%/*}/../.." TS_DESC="wipefs" diff --git a/tools/all_errnos b/tools/all_errnos index de4fbf0b39..ff0aa9b886 100755 --- a/tools/all_errnos +++ b/tools/all_errnos @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Derived from all_syscalls. diff --git a/tools/all_syscalls b/tools/all_syscalls index d1a84e025b..839bbff384 100755 --- a/tools/all_syscalls +++ b/tools/all_syscalls @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/tools/checkadoc-missing.sh b/tools/checkadoc-missing.sh index bb0c046693..9907b0195c 100755 --- a/tools/checkadoc-missing.sh +++ b/tools/checkadoc-missing.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2021 Karel Zak # based on checkman.sh from Sami Kerola diff --git a/tools/checkadoc-repeat.sh b/tools/checkadoc-repeat.sh index 223d647855..7adde43e12 100755 --- a/tools/checkadoc-repeat.sh +++ b/tools/checkadoc-repeat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # exit on errors set -o pipefail # exit if pipe writer fails diff --git a/tools/checkcompletion.sh b/tools/checkcompletion.sh index bd3f14fdc6..7395638ac6 100755 --- a/tools/checkcompletion.sh +++ b/tools/checkcompletion.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script verifies bash-completion consistency by checking: diff --git a/tools/checkmanpage.sh b/tools/checkmanpage.sh index 588fc571c2..75dc3fd818 100755 --- a/tools/checkmanpage.sh +++ b/tools/checkmanpage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tools/checktarball-meson.sh b/tools/checktarball-meson.sh index 5c6d14e0a3..ab183d48d7 100755 --- a/tools/checktarball-meson.sh +++ b/tools/checktarball-meson.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later # diff --git a/tools/checkusage.sh b/tools/checkusage.sh index 578035828e..0e258988e1 100755 --- a/tools/checkusage.sh +++ b/tools/checkusage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## This script is potentially dangerous! Don't run it on ## arbitrary commands. diff --git a/tools/get-options.sh b/tools/get-options.sh index a7299fec2c..4216748d00 100755 --- a/tools/get-options.sh +++ b/tools/get-options.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. # diff --git a/tools/git-grouped-log b/tools/git-grouped-log index 47f83dd6ba..a96a9fa766 100755 --- a/tools/git-grouped-log +++ b/tools/git-grouped-log @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later # diff --git a/tools/git-tp-sync b/tools/git-tp-sync index 627bd2dbe2..de9d4ff1a3 100755 --- a/tools/git-tp-sync +++ b/tools/git-tp-sync @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later # diff --git a/tools/git-version-bump b/tools/git-version-bump index c8949e87eb..26484494af 100755 --- a/tools/git-version-bump +++ b/tools/git-version-bump @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # SPDX-License-Identifier: GPL-2.0-or-later # diff --git a/tools/git-version-next b/tools/git-version-next index e7b2858d4d..0296a493e8 100755 --- a/tools/git-version-next +++ b/tools/git-version-next @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tools/testcoverage.sh b/tools/testcoverage.sh index 95be3c4749..b36ab63710 100755 --- a/tools/testcoverage.sh +++ b/tools/testcoverage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file is part of util-linux. #