Article 5PA0A Global variables in bash

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.latest?d=yIl2AUoC8zA latest?i=ylnZ4BGYwbQ:Xvv3nT7ELG0:F7zBnMy latest?i=ylnZ4BGYwbQ:Xvv3nT7ELG0:V_sGLiP latest?d=qj6IDK7rITs latest?i=ylnZ4BGYwbQ:Xvv3nT7ELG0:gIN9vFwylnZ4BGYwbQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments