[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#319212: ". foo >/dev/null" a bashism?



Package: lintian
Version: 1.23.6
Severity: minor

W: alsa-base: possible-bashism-in-maintainer-script postinst:80 '. "$conf_file" >/dev/null'

I don't know whether or not this is POSIXly correct, but it works in dash and posh.
// Thomas Hood

jdthood@turmeric:~$ posh
$ cat /tmp/s
echo out
echo err >&2
$ . /tmp/s
out
err
$ . /tmp/s >/dev/null
err
$ . /tmp/s 2>/dev/null
out
$ jdthood@turmeric:~$ dash
$ . /tmp/s
out
err
$ . /tmp/s >/dev/null
err
$ . /tmp/s 2>/dev/null
out
$




Reply to: