http://mywiki.wooledge.org/BashFAQ/024
"I set variables in a loop that's in a pipeline. Why do they disappear after the loop terminates? Or, why can't I pipe data to read?"
-> because the pipeline+while is a process in another scope.
On the solutions I've tested the mkfifo and it fixed my env.
My env: Centos 6.7
MYSQl_SOCK_PATHS="/srv/data/mysql/mysql.sock"
…ted on Centos6.7)
http://mywiki.wooledge.org/BashFAQ/024 "I set variables in a loop that's in a pipeline. Why do they disappear after the loop terminates? Or, why can't I pipe data to read?" -> because the pipeline+while is a process in another scope. On the solutions I've tested the mkfifo and it fixed my env.
My env: Centos 6.7 MYSQl_SOCK_PATHS="/srv/data/mysql/mysql.sock"