Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
exec in zsh -c does not decrement SHLVL.
- X-seq: zsh-workers 6653
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: exec in zsh -c does not decrement SHLVL.
- Date: 16 Jun 1999 16:16:04 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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