From 13406a9e534a0d3a790c84c6366aea597944daaf Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 20 Mar 2014 21:47:19 +0000 Subject: ash: set fake PPID value --- shell/ash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shell/ash.c b/shell/ash.c index 3d9af3891..2fc276e78 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -27,7 +27,7 @@ * - both / and \ are supported in PATH. Usually you must use / * - trap/job does not work * - /dev/null is supported for redirection - * - no $PPID + * - fake $PPID */ /* @@ -13599,8 +13599,7 @@ init(void) } } - if (!ENABLE_PLATFORM_MINGW32) - setvar2("PPID", utoa(getppid())); + setvar2("PPID", utoa(getppid())); #if ENABLE_ASH_BASH_COMPAT p = lookupvar("SHLVL"); setvar("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT); -- cgit v1.2.3-55-g6feb