Browse Source

zsh: use supplied sh (dash) insted of system/bin/sh

android-5
Fredrik Fornwall 10 years ago
parent
commit
8c3b65b380
  1. 4
      packages/zsh/exec_bin_sh.patch

4
packages/zsh/exec_bin_sh.patch

@ -6,7 +6,7 @@ diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c
argv[-1] = "sh"; argv[-1] = "sh";
winch_unblock(); winch_unblock();
- execve("/bin/sh", argv - 1, newenvp); - execve("/bin/sh", argv - 1, newenvp);
+ execve("/system/bin/sh", argv - 1, newenvp); + execve("@TERMUX_PREFIX@/bin/sh", argv - 1, newenvp);
} }
} else if (eno == ENOEXEC) { } else if (eno == ENOEXEC) {
for (t0 = 0; t0 != ct; t0++) for (t0 = 0; t0 != ct; t0++)
@ -15,7 +15,7 @@ diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c
argv[-1] = "sh"; argv[-1] = "sh";
winch_unblock(); winch_unblock();
- execve("/bin/sh", argv - 1, newenvp); - execve("/bin/sh", argv - 1, newenvp);
+ execve("/system/bin/sh", argv - 1, newenvp); + execve("@TERMUX_PREFIX@/bin/sh", argv - 1, newenvp);
} }
} }
} else } else

Loading…
Cancel
Save