2021-11-28 10:15:50 +01:00
|
|
|
diff -uNr nim-1.6.0/lib/pure/osproc.nim nim-1.6.0.mod/lib/pure/osproc.nim
|
|
|
|
--- nim-1.6.0/lib/pure/osproc.nim 2021-10-19 01:39:28.000000000 +0100
|
|
|
|
+++ nim-1.6.0.mod/lib/pure/osproc.nim 2021-11-28 07:17:57.000000000 +0100
|
|
|
|
@@ -982,7 +982,7 @@
|
2018-11-21 03:17:47 +01:00
|
|
|
if poEvalCommand in options:
|
|
|
|
const useShPath {.strdefine.} =
|
|
|
|
when not defined(android): "/bin/sh"
|
|
|
|
- else: "/system/bin/sh"
|
|
|
|
+ else: "@TERMUX_PREFIX@/bin/sh"
|
2020-04-05 20:03:14 +02:00
|
|
|
data.sysCommand = useShPath
|
2021-11-28 10:15:50 +01:00
|
|
|
sysArgsRaw = @[useShPath, "-c", command]
|
2018-11-21 03:17:47 +01:00
|
|
|
assert args.len == 0, "`args` has to be empty when using poEvalCommand."
|