From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28552 invoked from network); 16 Jun 1999 07:16:35 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Jun 1999 07:16:35 -0000 Received: (qmail 22109 invoked by alias); 16 Jun 1999 07:16:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6653 Received: (qmail 22102 invoked from network); 16 Jun 1999 07:16:07 -0000 To: zsh-workers@sunsite.auc.dk Subject: exec in zsh -c does not decrement SHLVL. MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 16 Jun 1999 16:16:04 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.3.10 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) 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