-
-
Save hamiltont/b6f336792793f91cbbca to your computer and use it in GitHub Desktop.
temp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===============FILE 1 - test.sh================== | |
#!/bin/bash | |
test_function () { | |
echo hi there | |
} | |
bash subshell.sh | |
===============FILE 2 - subshell.sh================== | |
#!/bin/bash | |
test_function | |
===============OUTPUT================== | |
$ bash test.sh | |
subshell.sh: line 3: test_function: command not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment