Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get rid of "local" keyword for sh.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 14 May 2019 15:16:22 +0000 (17:16 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 14 May 2019 19:22:02 +0000 (21:22 +0200)
commit8919dc9cd4f522f7dc9d397e1037dce8d6bd63ac
tree4282515bdb49ccda050d44ab4b5364bf913f6669
parent1509a50e35dbcad0fe6c99e059fb5b2aba1143f2
Get rid of "local" keyword for sh.

It's not specified by POSIX and not available on Solaris.
Simply use "local_" prefix for local variables.

For more information, see
https://stackoverflow.com/questions/18597697/posix-compliant-way-to-scope-variables-to-a-function-in-a-shell-script
src/smpi/smpitools.sh
tools/jenkins/build.sh