Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: ziyunfei <446240525@qq.com> Newsgroups: gnu.bash.bug Subject: SHLVL is a random string (uninitialized string in C) when its true value is "1000" Date: Thu, 17 Sep 2015 12:29:31 +0800 Lines: 18 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1442464191 8853 208.118.235.17 (17 Sep 2015 04:29:51 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1442464173; bh=lszmSnZfiGfeJSdmcWLUri2Qch17bdtQVK1Mp0VU7qE=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Message-Id:Date:To:Mime-Version; b=m9Rf+aW0pSpxdf7bhOPfyvhUlBRBx26oc+bvCnCAs110LxaAS9Y3fTJRn1L0uGbNp WiC1XOIBzTr/n8n/6+A0jTYZ54BdNRphb/b2KYDA3UZxUsRyov2IIhrqmkntir++aL /wfkj/hE5Vcs6JTHTgFvT6II/4RKBLpzThVKBeK0= X-QQ-mid: esmtp31t1442464172t144t26255 X-QQ-SSF: 0100000000000010F0K01F00000000G X-QQ-FEAT: lAlsrH99VJ8IotFrug2U6s4QRKlNKCcaf7Iwj4/ceEflvIeQScBXW19Byyqub NebUyxOc7y4X1bFFQeuhSow44Cm/dj4uT8UwQidmx4eKmq0I4HE2wIibEPtw6/t/zgQUavX PoIrvNowzg8mrjUCpSN2fPuigFQ8maX6AS2eu4U30cre8HKtjBhMODTUl9c6ZG2pEKrryPM UfN3pINNAihF7vy+VoeFFY9RZMOXAIOQ= X-QQ-GoodBg: 0 X-Mailer: Apple Mail (2.1878.2) X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 54.204.34.130 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11495 $ SHLVL=998 bash -c 'echo $SHLVL' 999 $ SHLVL=999 bash -c 'echo $SHLVL' $ SHLVL=999 bash -c 'echo -n "$SHLVL" | hexdump' 0b 01 $ SHLVL=999 bash -c 'echo -n "$SHLVL" | hexdump' 0f 01 $ SHLVL=999 bash -c 'echo -n "$SHLVL" | hexdump' 04 01 $ SHLVL=1000 bash -c 'echo $SHLVL' bash: warning: shell level (1001) too high, resetting to 1 1