projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd55f2d
)
ash: in bash compat mode, always export $SHLVL
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 7 Jan 2014 15:12:48 +0000
(16:12 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 7 Jan 2014 15:12:48 +0000
(16:12 +0100)
function old new delta
ash_main 1437 1442 +5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 71ef9a690f5941f567e35b7c911b7a248fde45d4..04ba447b1f2a9d7e8320389bcaff210d49c4e9f3 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-13014,7
+13014,7
@@
init(void)
setvar2("PPID", utoa(getppid()));
#if ENABLE_ASH_BASH_COMPAT
p = lookupvar("SHLVL");
- setvar
2("SHLVL", utoa(p ? atoi(p) + 1 : 1)
);
+ setvar
("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT
);
#endif
p = lookupvar("PWD");
if (p) {