# HG changeset patch # User Benoit Boissinot # Date 1152505759 25200 # Node ID 5ad16196cef461b495bf0f2aa78790c0a563a05a # Parent ce3339dbeb6ff14d740e53d9c873c5a0025e2d75 Don't read system rc files diff -r ce3339dbeb6f -r 5ad16196cef4 en/examples/run-example --- a/en/examples/run-example Wed Jul 05 00:14:15 2006 -0700 +++ b/en/examples/run-example Sun Jul 09 21:29:19 2006 -0700 @@ -86,11 +86,12 @@ pid, fd = pty.fork() if pid == 0: #os.execl(self.shell, self.shell) - os.system('/bin/bash --noediting --noprofile --rcfile %s' % rcfile) + os.system('/bin/bash --noediting --noprofile --norc') sys.exit(0) self.cfp = os.fdopen(fd, 'w+') try: - self.receive() + # setup env and prompt + self.sendreceive('source %s\n\n' % rcfile) for hunk in self.parse(): # is this line a processing instruction? m = self.pi_re.match(hunk)