Skip to content
New issue

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

Unable to get an interactive shell #218

Closed
zdexter opened this issue Jan 11, 2015 · 2 comments
Closed

Unable to get an interactive shell #218

zdexter opened this issue Jan 11, 2015 · 2 comments

Comments

@zdexter
Copy link

zdexter commented Jan 11, 2015

I would like to get a shell using sh. I am currently not sure whether this is a feature request, a bug report, or user error :)

import sys
from sh import sudo
out_kwargs = {'_out': sys.stdout, '_out_bufsize': 0, '_tty_in': True}
sudo.bash(**out_kwargs)

This gives a bash prompt, but I'm unable to interact with it. How can I get an interactive prompt? Thanks.

@amoffat
Copy link
Owner

amoffat commented Jan 11, 2015

can't be done, currently: #92

@amoffat amoffat added the 1.2 label Nov 6, 2015
@amoffat amoffat modified the milestone: 1.2 Oct 25, 2016
@amoffat amoffat removed the 1.2 label Oct 25, 2016
@amoffat
Copy link
Owner

amoffat commented Oct 25, 2016

_fg option exists in the 1.2 branch, which will be shipping soon

@amoffat amoffat closed this as completed Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants