|
From: | Michael D Godfrey |
Subject: | help whos incorrect |
Date: | Sat, 15 Jan 2011 22:42:44 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 |
I noticed Attr flags in a
whos command that are not in the help whos documentation. Since whos is builtin I do not know where the documentation is kept. here are the facts: help whos says (in part) Attr Attributes of the listed variable. Possible attributes are: blank Variable in local scope `g' Variable with global scope `p' Persistent variable ========================================== But, in src/variables.cc it says: tmp[0] = (is_automatic ? 'a' : ' '); tmp[1] = (is_formal ? 'f' : ' '); tmp[2] = (is_global ? 'g' : ' '); tmp[3] = (is_persistent ? 'p' : ' '); ============================== These are the flags that may be printed. If I knew where to apply the patch I would do it, but someone who knows could do the same in a few minutes. In my case I got an 'f' flag and wondered what it meant. Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |