projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not fail build if MAXSYMLINKS isn't defined
[oweals/busybox.git]
/
shell
/
ash.c
diff --git
a/shell/ash.c
b/shell/ash.c
index f9b4d3fe659702cb4617fe613929f339ea4c1d79..71ef9a690f5941f567e35b7c911b7a248fde45d4 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-13012,7
+13012,10
@@
init(void)
}
setvar2("PPID", utoa(getppid()));
-
+#if ENABLE_ASH_BASH_COMPAT
+ p = lookupvar("SHLVL");
+ setvar2("SHLVL", utoa(p ? atoi(p) + 1 : 1));
+#endif
p = lookupvar("PWD");
if (p) {
if (*p != '/' || stat(p, &st1) || stat(".", &st2)