Closed ale5000-git closed 2 months ago
Apart from the reference to su
this seems to be a duplicate of #302.
As mentioned there, bash decrements SHLVL
in exec
while upstream BusyBox (and so busybox-w32) don't. I looked for a way to replicate the bash behaviour in BusyBox, but without success.
I didn't remember the old ticket, I will ask upstream them.
EDIT: The upstream ticket is here => https://bugs.busybox.net/show_bug.cgi?id=16141
From
busybox ash
I runsu
, then (inside the su window):Why
$SHLVL
became 2 if I use exec?Edit: I get the same issue also with
exec ash