- 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
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
This mistake is reported by shellcheck with code SC3031: https://github.com/koalaman/shellcheck/wiki/SC3031