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

Change to use printf rather than echo.

parent 67516aa4
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ def __init__( self, name, inNamespace=True,
self.inNamespace = inNamespace
if self.inNamespace:
opts += '-n'
# xpg_echo is needed so we can echo our sentinel in sendCmd
cmd = [ 'mnexec', opts, 'bash', '-O', 'xpg_echo', '-m' ]
cmd = [ 'mnexec', opts, 'bash', '-m' ]
self.shell = Popen( cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT,
close_fds=False )
self.stdin = self.shell.stdin
......@@ -168,7 +167,7 @@ def sendCmd( self, cmd, printPid=False ):
separator = ';'
if printPid and not isShellBuiltin( cmd ):
cmd = 'mnexec -p ' + cmd
self.write( cmd + separator + ' echo -n "\\0177" \n' )
self.write( cmd + separator + ' printf "\\177" \n' )
self.lastCmd = cmd
self.lastPid = None
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