summaryrefslogtreecommitdiff
path: root/data/tcsh/shebang.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/tcsh/shebang.diff')
-rw-r--r--data/tcsh/shebang.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/data/tcsh/shebang.diff b/data/tcsh/shebang.diff
new file mode 100644
index 000000000..4b5cb66e3
--- /dev/null
+++ b/data/tcsh/shebang.diff
@@ -0,0 +1,21 @@
+diff -ur tcsh-TCSH6_20_00/config/mach tcsh-TCSH6_20_00+iPhone/config/mach
+--- tcsh-TCSH6_20_00/config/bsd4.4 2016-11-24 05:26:18.000000000 -1000
++++ tcsh-TCSH6_20_00+iPhone/config/bsd4.4 2019-03-29 18:15:08.000000000 -1000
+@@ -95,4 +95,6 @@
+ # define _TERMIOS_H_
+ #endif /* __NeXT31__ && !POSIX */
+
++#define HASHBANG
++
+ #endif /* _h_config */
+diff -ur tcsh-TCSH6_20_00/sh.exec.c tcsh-TCSH6_20_00+iPhone/sh.exec.c
+--- tcsh-TCSH6_20_00/sh.exec.c 2016-11-24 05:26:18.000000000 -1000
++++ tcsh-TCSH6_20_00+iPhone/sh.exec.c 2019-03-29 18:14:16.000000000 -1000
+@@ -401,6 +401,7 @@
+ switch (errno) {
+
+ case ENOEXEC:
++ case EPERM:
+ #ifdef WINNT_NATIVE
+ nt_feed_to_cmd(f,t);
+ #endif /* WINNT_NATIVE */