Files
systemd/man
Zbigniew Jędrzejewski-Szmek 2ed7a221fa run: expand variables also with --scope
This makes syntax be the same for commands which are started by the manager and
those which are spawned directly (when --scope is used).

Before:
$ systemd-run -q -t echo '$TERM'
xterm-256color

$ systemd-run -q --scope echo '$TERM'
$TERM

Now:
$ systemd-run -q --scope echo '$TERM'
xterm-256color

Previous behaviour can be restored via --expand-environment=no:
$ systemd-run -q --scope --expand-environment=no echo '$TERM'
$TERM

Fixes #22948.

At some level, this is a compat break. Fortunately --scope is not very widely
used, so I think we can get away with this. Having different syntax depending
on whether --scope was used or not was bad UX.

A NEWS entry will be required.
2023-04-24 10:02:30 +02:00
..
2023-03-10 11:41:03 +01:00
2022-10-14 15:56:58 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 16:05:31 +02:00
2022-11-16 00:12:16 +01:00
2023-03-10 11:41:03 +01:00
2022-06-28 13:10:05 +02:00
2023-02-12 00:54:07 +01:00
2022-12-07 10:26:31 +01:00
2022-03-07 15:32:22 +09:00
2021-06-30 23:33:00 +09:00
2023-01-19 23:11:36 +09:00
2022-01-06 22:20:11 +09:00
2023-03-08 15:32:59 +01:00
2023-02-22 14:46:19 +09:00
2023-03-10 11:41:03 +01:00
2022-08-23 12:14:58 +02:00
2023-03-14 18:03:32 +01:00
2022-08-28 00:03:36 +09:00
2023-03-10 11:41:03 +01:00
2022-03-21 20:06:13 +00:00
2023-01-20 15:32:16 +09:00