From systemctl(1)'s `show-environment`: [...] If no special characters or whitespace is present in the variable values, no escaping is performed, and the assignments have the form "VARIABLE=value". If whitespace or characters which have special meaning to the shell are present, dollar-single-quote escaping is used, and assignments have the form "VARIABLE=$'value'". [...] `DISPLAY` is unlikely to require such escaping, but is still broken and overly complicated. Just rely on the fact that systemctl outputs line that are safe to be interpreted by the shell. Filter for `DISPLAY` and `eval` the output instead of trying to parse just the value part and reassign it again.
15 KiB
15 KiB