zsh-workers
 help / color / mirror / code / Atom feed
* Bug report: Strange behaviour of $SHLVL in subshell.
@ 2014-11-01 14:31 Eliseo Martínez
  2014-11-01 19:15 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Eliseo Martínez @ 2014-11-01 14:31 UTC (permalink / raw)
  To: zsh-workers

Hi, 

To me, the following is not logical/expected behaviour:

    $ echo $SHLVL
    1
    $ zsh -c 'echo $SHLVL'
    2
    $ zsh -c '(echo $SHLVL)'
    1

I’d just like to know if it is a bug, or has some kind of explanation.

Thanks, 
Eliseo Martínez.

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

end of thread, other threads:[~2014-11-01 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-01 14:31 Bug report: Strange behaviour of $SHLVL in subshell Eliseo Martínez
2014-11-01 19:15 ` Peter Stephenson

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).