ok so I'm debugging pyinfra and it seems it mishandles sudo -i; however despite reading the sudo manpage I'm also incapable of understanding how sudo -i *precisely* works when it comes to escaping (see second toot)
So here's the question: how do I make this command output 1? with -i; I do want a login shell.
sudo -i sh -c 'x=1; echo $x'