~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

Re: bash-5.0: case command bug

2019-01-18 Thread Chet Ramey
On 1/18/19 1:46 PM, Drab Martin wrote: > Allright, I got it. It is a problem of faulty GCC 8.2 compiler. Just > recompiled bash-5.0 with CFLAGS="-O2 -march=native -pipe" and it works > fine, now. Sorry to bother you with this. Will try to report bug to the > GCC, when I have a bit more time. Thank

Re: bash-5.0: case command bug

2019-01-18 Thread Drab Martin
On 1/18/19 1:44 PM, Chet Ramey wrote: On 1/17/19 6:21 PM, Drab Martin wrote: Hi, I have a problem with bash 5.0: - machine1 ~ # bash --version GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or lat

Re: bash-5.0: case command bug

2019-01-18 Thread Chet Ramey
On 1/17/19 6:21 PM, Drab Martin wrote: > Hi, > > I have a problem with bash 5.0: > > - > machine1 ~ # bash --version > GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu) > Copyright (C) 2019 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later