How to determine if a shell script file is sourced in Bash
2267
How to detect if a script is being sourced
22976
What is the difference between sourcing ('.' or 'source') and executing a file in bash?
106082
Bash ping script file for checking host availability
12579
How to determine the current shell I'm working on
152983
How can I test for POSIX compliance of shell scripts?
90644
At what point is the ~/.bashrc file created?
21291
Lookup shell variables by name, indirectly
45253
How to recognize whether a script is running on a tty?
58433
What's a concise way to check that environment variables are set in a Unix shell script?
20125
How do I syntax check a Bash script without running it?
73332
Source shell script automatically in terminal
82583
Checking for interactive shell in a Python script
25742
How to debug a bash script?
103812
How to see the command attached to a bash alias?
89409
How might I get the script filename from within that script?
157559
In a Bash if condition, how to check whether any files matching a simple wildcard expression exist?
76028
Why doesn't my Bash script recognize aliases?