On 05/12/14 16:13, arnaud gaboury wrote:
> Now:
> ----------------------------------
> $ echo 'lolo=4 lala=5' | tee test
> lolo=4 lala=5
> $ systemctl --user set-environment 'cat test'
> Failed to set environment: Invalid environment assignments
> -----------------------------------
> 
> No idea what I do wrong.

This is invalid shell syntax. This should work:

$ systemctl --user set-environment `cat test`

or, if you are using bash, I find this more readable:

$ systemctl --user set-environment $(cat test)


Cheers,
Daniele

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to