We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As mentioned in #1322 , pty=True implies that stdout and stderr are merged.
However, if using sudo, I would strongly classify it as a bug to not remove the sudo prompt:
import fabric import getpass with fabric.Connection(host='localhost') as c: c.config.sudo.password = getpass.getpass() r = c.sudo('cat /etc/passwd', pty=True) print('stdout=') print(r.stdout)
results in:
stdout= [sudo] password: </etc/passwd file>
I would expect sudo() to remove the sudo prompt, e.g. something like this:
assert r.stdout.startswith(sudo_prompt) r.stdout = r.stdout[len(sudo_prompt):] return r
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As mentioned in #1322 , pty=True implies that stdout and stderr are merged.
However, if using sudo, I would strongly classify it as a bug to not remove the sudo prompt:
results in:
I would expect sudo() to remove the sudo prompt, e.g. something like this:
The text was updated successfully, but these errors were encountered: