zsh-workers
 help / color / mirror / code / Atom feed
* [bug] $SHLVL decremented for the last command of a subshell
@ 2016-08-22  6:17 Stephane Chazelas
  2016-08-29 15:51 ` [PATCH] " Stephane Chazelas
  0 siblings, 1 reply; 13+ messages in thread
From: Stephane Chazelas @ 2016-08-22  6:17 UTC (permalink / raw)
  To: Zsh hackers list

(from https://unix.stackexchange.com/questions/304917/detect-when-zsh-is-running-within-the-subshell-of-another-shell)

$ printenv SHLVL
1
$ (printenv SHLVL)
0
$ (printenv SHLVL;:)
1
$ (:;printenv SHLVL)
0


http://www.zsh.org/mla/workers/1999/msg02472.html
sounds like a potential culprit.

-- 
Stephane


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-04  5:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22  6:17 [bug] $SHLVL decremented for the last command of a subshell Stephane Chazelas
2016-08-29 15:51 ` [PATCH] " Stephane Chazelas
2016-08-30  1:55   ` Bart Schaefer
2016-08-30 12:44     ` [PATCHv2] " Stephane Chazelas
2016-08-30 13:04       ` Peter Stephenson
2016-08-30 16:46         ` Stephane Chazelas
2016-08-30 17:00           ` Peter Stephenson
2016-08-30 18:34             ` Mikael Magnusson
2016-08-31  9:02               ` Peter Stephenson
2016-08-30 19:54             ` Stephane Chazelas
2016-08-30 20:10               ` Stephane Chazelas
2016-08-31 10:06       ` Peter Stephenson
2016-09-04  5:32         ` Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).