dash: fix default PATH
This commit is contained in:
parent
2b877693b5
commit
586f8b84c0
@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://gondor.apana.org.au/~herbert/dash/
|
||||
TERMUX_PKG_DESCRIPTION="Small POSIX-compliant implementation of /bin/sh"
|
||||
TERMUX_PKG_ESSENTIAL=yes
|
||||
TERMUX_PKG_VERSION=0.5.10.2
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SHA256=3c663919dc5c66ec991da14c7cf7e0be8ad00f3db73986a987c118862b5f6071
|
||||
TERMUX_PKG_SRCURL=http://gondor.apana.org.au/~herbert/dash/files/dash-${TERMUX_PKG_VERSION}.tar.gz
|
||||
|
||||
|
12
packages/dash/src-var.c.patch
Normal file
12
packages/dash/src-var.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr dash-0.5.10.2/src/var.c dash-0.5.10.2.mod/src/var.c
|
||||
--- dash-0.5.10.2/src/var.c 2018-05-17 14:10:58.000000000 +0300
|
||||
+++ dash-0.5.10.2.mod/src/var.c 2018-06-21 10:46:49.260059837 +0300
|
||||
@@ -74,7 +74,7 @@
|
||||
MKINIT struct localvar_list *localvar_stack;
|
||||
|
||||
const char defpathvar[] =
|
||||
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
||||
+ "PATH=@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets";
|
||||
#ifdef IFS_BROKEN
|
||||
const char defifsvar[] = "IFS= \t\n";
|
||||
#else
|
Loading…
Reference in New Issue
Block a user