[Debconf-devel] Bug#901185: Bug#901185: me too

Andreas Metzler ametzler at bebt.de
Sun Jun 10 15:04:13 BST 2018


On 2018-06-10 Colin Watson <cjwatson at debian.org> wrote:
> On Sun, Jun 10, 2018 at 03:03:28PM +0200, Andreas Metzler wrote:
>> 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.

> Does this patch help?

> diff --git a/confmodule b/confmodule
> index 8347c0b0..e6157520 100644
> --- a/confmodule
> +++ b/confmodule
> @@ -46,6 +46,7 @@ _db_cmd () {
>  	# Set to newline to get whole line.
>  	IFS='
>  ' read -r _db_internal_line
> +	IFS="$_db_internal_IFS"
>  	# Disgusting, but it's the only good way to split the line,
>  	# preserving all other whitespace.
>  	RET="${_db_internal_line#[! 	][ 	]}"

> (If so, that would suggest that the problem might be specifically in
> variable assignments preceding builtins.)

Hello Colin,

yes, resetting IFS to its default value in confmodule helps.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Debconf-devel mailing list