> On Tue, 2016-11-15 at 18:42 +0000, Samuel Rakitničan wrote:
> 
> What about -E option?

Thanks for that, didn't take this into consideration. -E option however seems 
to have no effect on PATH environment variable.

$ sudo -E env | grep ^PATH
PATH=/sbin:/bin:/usr/sbin:/usr/bin

Following however works, but I don't find it convenient, I might as well type 
in the whole path (easier to remember). More so, I don't want the whole user's 
PATH including user's /home, but just fewer safe locations.

$ sudo PATH=$PATH env | grep ^PATH
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to