about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bash-kernel/bash-path.patch
blob: 98c3cc511ab7452649137a6015f74ed5c2ff872b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/bash_kernel/kernel.py b/bash_kernel/kernel.py
index 0496f1e..bd13c4f 100644
--- a/bash_kernel/kernel.py
+++ b/bash_kernel/kernel.py
@@ -88,7 +88,7 @@ class BashKernel(Kernel):
     @property
     def banner(self):
         if self._banner is None:
-            self._banner = check_output(['bash', '--version']).decode('utf-8')
+            self._banner = check_output(['@bash@', '--version']).decode('utf-8')
         return self._banner
 
     language_info = {'name': 'bash',
@@ -116,7 +116,7 @@ class BashKernel(Kernel):
             # source code there for comments and context for
             # understanding the code here.
             bashrc = os.path.join(os.path.dirname(pexpect.__file__), 'bashrc.sh')
-            child = pexpect.spawn("bash", ['--rcfile', bashrc], echo=False,
+            child = pexpect.spawn("@bash@", ['--rcfile', bashrc], echo=False,
                                   encoding='utf-8', codec_errors='replace')
             # Following comment stolen from upstream's REPLWrap:
             # If the user runs 'env', the value of PS1 will be in the output. To avoid