xenial has the same problem, but does not actually parse the file to apt-key. If we SRU there, I suggest:
apt-config dump -o foo=" bar " | sed s#CommandLine::AsString#CommandLineAsString#g | apt-config shell FOO CommandLineAsString -c /dev/stdin
as the test case.
xenial: > E: Syntax error /dev/stdin:211: Extra junk after value current: > FOO='apt-config dump -o foo='\'' bar '\'''
xenial has the same problem, but does not actually parse the file to apt-key. If we SRU there, I suggest:
apt-config dump -o foo=" bar " | sed s#CommandLine: :AsString# CommandLineAsSt ring#g | apt-config shell FOO CommandLineAsString -c /dev/stdin
as the test case.
xenial:
> E: Syntax error /dev/stdin:211: Extra junk after value
current:
> FOO='apt-config dump -o foo='\'' bar '\'''