Bug#807278: checkbashisms: check for wildcards in redirects
Gioele Barabucci
gioele at svario.it
Mon Dec 7 00:10:09 UTC 2015
Package: devscripts
Version: 2.15.9
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],
> Per POSIX, a non-interactive shell shall not generate pathnames
> in redirections; an interactive shell may, provided exactly one
> pathname results.
dash, bash --posix and other shells do not expand wildcards in
redirects.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746186
--
Gioele Barabucci <gioele at svario.it>
More information about the devscripts-devel
mailing list