summaryrefslogtreecommitdiffstats
path: root/src/test/test-env-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-03 21:53:38 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-19 14:18:33 +0100
commitc4899ea427fe93b5b2beac8ab10bfee7dfbf2021 (patch)
tree8e2204293020a7ecd952006ceea2bd1191211fd7 /src/test/test-env-util.c
parentMerge pull request #18294 from ssahani/net-2 (diff)
downloadsystemd-c4899ea427fe93b5b2beac8ab10bfee7dfbf2021.tar.xz
systemd-c4899ea427fe93b5b2beac8ab10bfee7dfbf2021.zip
systemctl: print a warning when trying to import a nonexistent variable
I was quite confused what is happening: $ XXX=xxx $ systemctl --user import-environment XXX $ systemctl --user show-environment | grep XXX (nothing) Obviously, 'export XXX' was missing. Without any indication why the export is not happening, this can be hard to figure out. Another option would be to error out. But so far we didn't, and doing that could break some script which optimistically tries to export some variables, if present.
Diffstat (limited to 'src/test/test-env-util.c')
0 files changed, 0 insertions, 0 deletions