#807278 checkbashisms: check for wildcards in redirects

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Gioele Barabucci
Date:
2023-03-07 10:30:02 UTC
Severity:
normal
#807278#5
Date:
2015-12-07 00:10:09 UTC
From:
To:
Dear Maintainer,

bash (without --posix) allows wildcards in redirects, for example

    echo 1 > /sys/class/leds/${DEVICE}?:amber:mute/brightness

As illustrated in the dash bug report #746186 [1],

dash, bash --posix and other shells do not expand wildcards in
redirects.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746186

#807278#10
Date:
2022-01-03 19:24:24 UTC
From:
To:
This mistake is reported by shellcheck with code SC3031:

https://github.com/koalaman/shellcheck/wiki/SC3031