[ my public key: https://keybase.io/mattn; my proof: https://keybase.io/mattn/sigs/3zB5s_ce9aXQlaTji4GnKaLn3q3QF9-kx00MuG8UPmI ]
[ my public key: https://keybase.io/mattn; my proof: https://keybase.io/mattn/sigs/3zB5s_ce9aXQlaTji4GnKaLn3q3QF9-kx00MuG8UPmI ]
I read the code. I don't make sure but AFAIS, elevate doesn't handle stdin/stdout/stderr, can't pass environment variable correctly. After set FOO=bar, the process can't read FOO. etc.
I'm author. I added this because I want to write hosts file with ":w !sudo tee %" from gvim.exe on Windows. But most of implementations doesn't work for this.