Re: documentation... readonly help is not accurate

2013-03-05 Thread Chet Ramey
On 3/4/13 11:12 AM, Gotmy Nick wrote: > On 4 March 2013 14:51, Chet Ramey wrote: >> >> This isn't accurate. Run the following script: >> >> foo() >> { >> echo foo >> } >> bar=quux >> >> readonly foo >> readonly bar >> >> readonly >> >> In addition to the built-in bash readonly variables,

Re: documentation... readonly help is not accurate

2013-03-04 Thread Gotmy Nick
On 4 March 2013 14:51, Chet Ramey wrote: > > This isn't accurate. Run the following script: > > foo() > { > echo foo > } > bar=quux > > readonly foo > readonly bar > > readonly > > In addition to the built-in bash readonly variables, both bar and foo will > be listed. Maybe I'm wrong, bu

Re: documentation... readonly help is not accurate

2013-03-04 Thread Chet Ramey
On 3/3/13 4:40 PM, Gotmy Nick wrote: > Hello, > >Sorry if this has been reported earlier, but I can't find nothing > related in the archives. > > $ help readonly | grep -- '-p' > readonly: readonly [-aAf] [name[=value] ...] or readonly -p > -pdisplay a list of

documentation... readonly help is not accurate

2013-03-03 Thread Gotmy Nick
Hello, Sorry if this has been reported earlier, but I can't find nothing related in the archives. $ help readonly | grep -- '-p' readonly: readonly [-aAf] [name[=value] ...] or readonly -p -pdisplay a list of all readonly variables and functions $ echo $B