In linux, if you have shell script called test.sh and you want it executed IN THE CURRENT SHELL, such that the variables/environment variables set by that script are preserved in the current/originating shell, you can either do:
source test.sh
or, alternatively
[...] test.sh
.
^^ single dot, followed by space
^^^ the use of this is e.g. if you do ". test.sh" and test.sh sets variable X=2, then in the originating/current shell, X is now set, even after test.sh finishes running.
In linux, if you have shell script called test.sh and you want it executed IN THE CURRENT SHELL, such that the variables/environment variables set by that script are preserved in the current/originating shell, you can either do:
source test.sh
or, alternatively
[...] test.sh
In linux, if you have shell script called test.sh and you want it executed IN THE CURRENT SHELL, such that the variables/environment variables set by that script are preserved in the current/originating shell, you can either do:
source test.sh
or, alternatively
[...] test.sh
.
^^ single dot, followed by space
^^^ the use of this is e.g. if you do ". test.sh" and test.sh sets variable X=2, then in the originating/current shell, X is now set, even after test.sh finishes running.
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |