Bug#559344: kldutils: bashism used in /etc/init.d/module-init-tools
On Thu, 3 Dec 2009 20:44:03 +0000 (UTC)
Thorsten Glaser <tg@mirbsd.de> wrote:
> I propose: (untested at the moment though)
>
> modules="$(cat /etc/modules /etc/modules.d/* 2>/dev/null | \
> sed -e 's/#.*//g' -e '/^[ ]*$/d')"
> ^ ^-> space
> +----> tab
At least gnu sed, which we use, supports \t, so the 's/^[\t ]*$/d' is
OK:
$ bash -c "echo -e \"x\tx x\"" | sed -ne 's/[\t ]//g;l'
xxx$
> >-- debsums errors found:
> >Your vendor has not defined Fcntl macro O_NOATIME, used at /usr/bin/debsums line 277.
>
> WTF?
Probably a bug in perl's Fcntl.pm, haven't looked further:
$ perl -MFcntl=O_NOATIME -le 'print STDOUT O_NOATIME'
Your vendor has not defined Fcntl macro O_NOATIME, used at -e line 1.
Hanno
Reply to: