Answers for "assign global variable inside loop bash"

1

assign global variable inside loop bash

The while-loop is executed in a subshell, so changes to the variable 
 inside the while-loop won't affect the external variable.
Posted by: Guest on July-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language