diff options
| author | Jeff Quast <contact@jeffquast.com> | 2014-11-23 03:53:49 -0800 |
|---|---|---|
| committer | Jeff Quast <contact@jeffquast.com> | 2014-11-23 03:57:47 -0800 |
| commit | ec6f0562c447d1c25657fe4b8f0da75aceb2a14b (patch) | |
| tree | 74215173ee8e11300756c04fa115fd0b5aff7cb3 /pexpect/replwrap.py | |
| parent | 00c8aaed9605c446844bbe379582753492a3627b (diff) | |
| download | pexpect-setecho-in-bash-replwrap-sunos.tar.gz | |
Bugfix for solaris in replwrap.bash()setecho-in-bash-replwrap-sunos
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.
Diffstat (limited to 'pexpect/replwrap.py')
| -rw-r--r-- | pexpect/replwrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/replwrap.py b/pexpect/replwrap.py index 0c879ff..7b0e823 100644 --- a/pexpect/replwrap.py +++ b/pexpect/replwrap.py @@ -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") |
