Skip to content

Commit

Permalink
Bugfix for solaris in replwrap.bash()
Browse files Browse the repository at this point in the history
Forgot to set ``echo=False`` when calling spawnu()
directly in replwrap.bash(), resulting in IOError
on SunOs:

    IOError: [Errno 22] Invalid argument: setecho() may not be called on this platform.
  • Loading branch information
jquast committed Nov 23, 2014
1 parent 00c8aae commit ec6f056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pexpect/replwrap.py
Expand Up @@ -108,6 +108,6 @@ def python(command="python"):
def bash(command="bash"):
"""Start a bash shell and return a :class:`REPLWrapper` object."""
bashrc = os.path.join(os.path.dirname(__file__), 'bashrc.sh')
child = pexpect.spawnu(command, ['--rcfile', bashrc])
child = pexpect.spawnu(command, ['--rcfile', bashrc], echo=False)
return REPLWrapper(child, u'\$', u("PS1='{0}' PS2='{1}' PROMPT_COMMAND=''"),
extra_init_cmd="export PAGER=cat")

0 comments on commit ec6f056

Please sign in to comment.