Global variables in bash
by ychaouche from LinuxQuestions.org on (#5PA0A)
Dear LQ,
What is the "standard" way of programming in bash ? can my functions simply
change global variables inside their code and the rest of my script expects
global variables to be changed anytime, or do you write functions that take
parameters and return values ?
It is easy to receive or return a number or a string, but I still have to figure out how to receive/return multiple values.
What is the "standard" way of programming in bash ? can my functions simply
change global variables inside their code and the rest of my script expects
global variables to be changed anytime, or do you write functions that take
parameters and return values ?
It is easy to receive or return a number or a string, but I still have to figure out how to receive/return multiple values.