changeset 70:365b41b6a15e

bash is not necessarily in /bin. Original patch against an earlier rev from Guy Brand <gb@isis.u-strasbg.fr>.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 08 Aug 2006 14:13:28 -0700
parents e9dd634ab99e
children ddf533d41c09
files en/examples/run-example
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/en/examples/run-example	Tue Aug 08 20:41:37 2006 +0200
+++ b/en/examples/run-example	Tue Aug 08 14:13:28 2006 -0700
@@ -25,7 +25,7 @@
     return s
         
 class example:
-    shell = '/bin/bash'
+    shell = '/usr/bin/env bash'
     prompt = '__run_example_prompt__\n'
     pi_re = re.compile('#\$\s*(name):\s*(.*)$')
     
@@ -89,7 +89,8 @@
         sys.stderr.flush()
         pid, fd = pty.fork()
         if pid == 0:
-            cmdline = ['/bin/bash', '--noediting', '--noprofile', '--norc']
+            cmdline = ['/usr/bin/env', 'bash', '--noediting', '--noprofile',
+                       '--norc']
             try:
                 os.execv(cmdline[0], cmdline)
             except OSError, err: