[Debconf-devel] Bug#901185: me too

Andreas Metzler ametzler at bebt.de
Sun Jun 10 14:03:28 BST 2018


Hello bash maintainers (debconf Cced),

I have tried debugging the issue to get a minimal testcase. I have had
some success. The issue is triggered by debconf.
/usr/share/debconf/confmodule changes IFS to \n and with bash5 this
change is persistent and breaks the maintainerscript. i.e. installing a
package using the following.postinst (simply invoking the script as
unprivildged user also works, no dummy-package necessary)

--------------------
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
list="item1 item2"
for i in $list ; do
	echo $i 1>&2
done
--------------------

will
a) print
item1 item2
with bash5 and
b) print
item1
item2
with bash4 and dash.

Unfortunately I have not been able to get a simpler testcase.

cu Andreas



More information about the Debconf-devel mailing list