That is true.
Subshells may not in some cases see the same shell variables as in other shells.
I'm not contesting this.
But let's suppose that we have not a shell variable, but a socket...
A socket that any program can open -- and retrieve a web page from...
For the simplicity of thought, let's say that the data for that web page is always static.
It always returns the same web page; the same data for that web page...
So now my question to you:
Can that socket, which can be opened by any program, mimic a global variable?
?
Why or why not?
?
Or perhaps an even simpler question...
Let's suppose that there's a file on filesystem... globally accessible to be read and written to by all programs...
Can that file's presence mimic a global variable?
?
Why or why not?
?