TERMUX_PKG_DESCRIPTION="Small POSIX-compliant implementation of /bin/sh"
TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_VERSION=0.5.9.1
+TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=5ecd5bea72a93ed10eb15a1be9951dd51b52e5da1d4a7ae020efd9826b49e659
# Use a mirror as upstream has issues:
# TERMUX_PKG_SRCURL=http://gondor.apana.org.au/~herbert/dash/files/dash-${TERMUX_PKG_VERSION}.tar.gz
--- /dev/null
+diff --git a/src/main.c b/src/main.c
+index fcd3e7d..39b6e70 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -146,7 +146,7 @@ main(int argc, char **argv)
+ login = procargs(argc, argv);
+ if (login) {
+ state = 1;
+- read_profile("/etc/profile");
++ read_profile("@TERMUX_PREFIX@/etc/profile");
+ state1:
+ state = 2;
+ read_profile("$HOME/.profile");