diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-03 21:53:38 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-19 14:18:33 +0100 |
commit | c4899ea427fe93b5b2beac8ab10bfee7dfbf2021 (patch) | |
tree | 8e2204293020a7ecd952006ceea2bd1191211fd7 /src/test/test-env-util.c | |
parent | Merge pull request #18294 from ssahani/net-2 (diff) | |
download | systemd-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