Re: ~60 global variables use by only one function in bash source

2019-01-19 Thread Chet Ramey
On 1/18/19 6:06 PM, Peng Yu wrote: > Hi, > > I see these global or static variables (1st column) used only by one > function (2nd column). Some are from bash, some are from the libraries > that bash depends. OK. You've done the first part by compiling a list. Now you have to perform the analysis.

~60 global variables use by only one function in bash source

2019-01-18 Thread Peng Yu
Hi, I see these global or static variables (1st column) used only by one function (2nd column). Some are from bash, some are from the libraries that bash depends. It seems to be problematic to declare variables global/static but only to use them in one function. Should these variables be made loc