hgbook

changeset 22:5ad16196cef4

Don't read system rc files
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun Jul 09 21:29:19 2006 -0700 (2006-07-09)
parents ce3339dbeb6f
children 9457add294b8
files en/examples/run-example
line diff
     1.1 --- a/en/examples/run-example	Wed Jul 05 00:14:15 2006 -0700
     1.2 +++ b/en/examples/run-example	Sun Jul 09 21:29:19 2006 -0700
     1.3 @@ -86,11 +86,12 @@
     1.4          pid, fd = pty.fork()
     1.5          if pid == 0:
     1.6              #os.execl(self.shell, self.shell)
     1.7 -            os.system('/bin/bash --noediting --noprofile --rcfile %s' % rcfile)
     1.8 +            os.system('/bin/bash --noediting --noprofile --norc')
     1.9              sys.exit(0)
    1.10          self.cfp = os.fdopen(fd, 'w+')
    1.11          try:
    1.12 -            self.receive()
    1.13 +            # setup env and prompt
    1.14 +            self.sendreceive('source %s\n\n' % rcfile)
    1.15              for hunk in self.parse():
    1.16                  # is this line a processing instruction?
    1.17                  m = self.pi_re.match(hunk)