termux-packages/packages/nano/src-text.c.patch

13 lines
482 B
Diff
Raw Normal View History

2019-06-23 23:38:06 +02:00
diff -u -r ../nano-4.3/src/text.c ./src/text.c
--- ../nano-4.3/src/text.c 2019-06-11 11:55:31.000000000 +0000
+++ ./src/text.c 2019-06-23 21:36:28.191047000 +0000
@@ -956,7 +956,7 @@
2018-06-19 18:04:44 +02:00
/* Check which shell to use. If none is specified, use /bin/sh. */
shellenv = getenv("SHELL");
if (shellenv == NULL)
2019-06-23 23:38:06 +02:00
- shellenv = (char *)"/bin/sh";
+ shellenv = (char *)"@TERMUX_PREFIX@/bin/sh";
2018-06-19 18:04:44 +02:00
/* Fork a child process to run the command in. */
2019-06-23 23:38:06 +02:00
if ((pid_of_command = fork()) == 0) {