Login
You're viewing the techdon.dev public feed.
  • Dec 11, 2025, 4:50 AM

    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'

    #askfedi #linux #pyinfra

    💬 0🔄 1⭐ 1