Skip to content

0.6.13

Compare
Choose a tag to compare
@pstadler pstadler released this 09 Mar 09:31
· 24 commits to master since this release

This finally fixes transport#sudo() to work within different shells and environments. The only reliable way of running commands using sudo -i is by piping them into bash, such as echo 'echo hello world' | sudo -i -u root bash. This might seems to be the obvious solution, but then again why is sudo -i -u root bash -c 'echo foo;echo bar' resulting in "bar" being printed, but "foo" is not?

http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00095.html

Along the way, one should not forget to replace single quotes within single quotes with '\''.