We have two shell scripts (A & B) running parallelly on the same Linux machine. Here is the code of script A
#!/bin/bash
MY_VAR=Hello
// Script Code run for 5-10 seconds
Here is script B
#!/bin/bash
MY_VAR=HI
// Script Code run for 5-10 seconds
What will be the scope for the MY_VAR variable, If both scripts are running parallelly?
For example, if we start script A, and while script A is running we start script B. Would change in MY_VAR value in script B change it for script A as well (wherever we are accessing it in script A)