systemctl: show Environment entries with whitespace
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Apr 2020 07:57:07 +0000 (09:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Apr 2020 07:58:17 +0000 (09:58 +0200)
commit241c4b6adae3ec015f69b34174511e6912d1f0d0
tree2752df31eb0b92b34e5e9271854b3afcd360bf45
parent2b99f645c672efa239a6b8ab1ee2c084474cebba
systemctl: show Environment entries with whitespace

This makes the Environment entries more round-trippable: a similar format is
used for input and output. It is certainly more useful for users, because
showing [unprintable] on anything non-trivial makes systemctl show -p Environment
useless in many cases.

Fixes: #14723 and https://bugzilla.redhat.com/show_bug.cgi?id=1525593.

$ systemctl --user show -p Environment run-*.service
Environment=ASDF=asfd "SPACE= "
Environment=ASDF=asfd "SPACE=\n\n\n"
Environment=ASDF=asfd "TAB=\t\\" "FOO=X X"
src/shared/bus-util.c