Revision 47acf539

View differences:

mininet/node.py
70 70
        self.inNamespace = inNamespace
71 71
        if self.inNamespace:
72 72
            opts += '-n'
73
        # xpg_echo is needed so we can echo our sentinel in sendCmd
74
        cmd = [ 'mnexec', opts, 'bash', '-O', 'xpg_echo', '-m' ]
73
        cmd = [ 'mnexec', opts, 'bash', '-m' ]
75 74
        self.shell = Popen( cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT,
76 75
            close_fds=False )
77 76
        self.stdin = self.shell.stdin
......
168 167
            separator = ';'
169 168
            if printPid and not isShellBuiltin( cmd ):
170 169
                cmd = 'mnexec -p ' + cmd
171
        self.write( cmd + separator + ' echo -n "\\0177" \n' )
170
        self.write( cmd + separator + ' printf "\\177" \n' )
172 171
        self.lastCmd = cmd
173 172
        self.lastPid = None
174 173
        self.waiting = True

Also available in: Unified diff