Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug report: Strange behaviour of $SHLVL in subshell.
- X-seq: zsh-workers 33590
- From: Eliseo Martínez <eliseomarmol@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug report: Strange behaviour of $SHLVL in subshell.
- Date: Sat, 1 Nov 2014 15:31:21 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=QcRNTGzdytk9RXu1n4rcB6cQ3JK+wYRlSYMsMtiI5Z8=; b=A+JyZuOXrcKQkdNjl66aWf7dVUPHJar/eA8dBK+L0Dh8xd6uH7Lu+IfXvfJR9x2ZIQ s0KSkDLG2QLd5bRYIKP16jen3uKnv6EbxlgqHfhPeDebzPicyBvOR75hJ/S1TYpA6wlM VkmI+xMYavMoMU8CwGs7em55fFEORdbH6TvcTldYV6mxrjBV18T9BJYFqjT0sOCQT9tm kC9OmEGyuM4WHl35725Kgt8bVjvW6hmQKGyDaC/KbMBlKA1eTJgsnULMPL2VBaAgVZoj 0u4Pvd/1+bvEAPWyJc6IadPc2xRYo76oOpKr0rIMKkEklnX9h+G0uomZsDT7Yel6dGZZ knLg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author