Skip to content
Snippets Groups Projects
Commit e953444f authored by Bob Lantz's avatar Bob Lantz
Browse files

Corrected list checkin sendCmd.

parent 74993b65
No related branches found
No related tags found
No related merge requests found
......@@ -134,13 +134,13 @@ def sendCmd( self, cmd ):
"""Send a command, followed by a command to echo a sentinel,
and return without waiting for the command to complete."""
assert not self.waiting
if isinstance( cmd, list ):
cmd = ' '.join( cmd )
if cmd[ -1 ] == '&':
separator = '&'
cmd = cmd[ :-1 ]
else:
separator = ';'
if isinstance( cmd, list ):
cmd = ' '.join( cmd )
self.write( cmd + separator + ' echo -n "\\0177" \n' )
self.waiting = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment