changeset 22:5ad16196cef4

Don't read system rc files
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 09 Jul 2006 21:29:19 -0700
parents ce3339dbeb6f
children 9457add294b8
files en/examples/run-example
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)