Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

exec in zsh -c does not decrement SHLVL.



Z:akr@is27e1u11% printenv SHLVL
1
Z:akr@is27e1u11% zsh -f
is27e1u11% printenv SHLVL
2
is27e1u11% exec printenv SHLVL
1
Z:akr@is27e1u11% zsh -c 'exec printenv SHLVL'
2
Z:akr@is27e1u11%

I think that "zsh -c 'exec printenv SHLVL'" should print 1.
Is this intentional?
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author