From ec6f0562c447d1c25657fe4b8f0da75aceb2a14b Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Sun, 23 Nov 2014 03:53:49 -0800 Subject: Bugfix for solaris in replwrap.bash() 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. --- pexpect/replwrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pexpect/replwrap.py') 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") -- cgit v1.2.1