aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index d104aea1d..a916f2772 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13616,7 +13616,7 @@ init(void)
13616 setvar2("PPID", utoa(getppid())); 13616 setvar2("PPID", utoa(getppid()));
13617#if ENABLE_ASH_BASH_COMPAT 13617#if ENABLE_ASH_BASH_COMPAT
13618 p = lookupvar("SHLVL"); 13618 p = lookupvar("SHLVL");
13619 setvar2("SHLVL", utoa(p ? atoi(p) + 1 : 1)); 13619 setvar("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT);
13620#endif 13620#endif
13621 p = lookupvar("PWD"); 13621 p = lookupvar("PWD");
13622 if (p) { 13622 if (p) {