How to know, what SHELL is used when running a script?
54838
determine shell in script during runtime
32654
How to know where shell variables and functions are set?
81699
How can I determine the OS of the system from within a Lua script?
68373
Shell script runs with bash but not with sh. Why and how to fix it?
45253
How to recognize whether a script is running on a tty?
65962
How to compare a program's version in a shell script?
51113
How to determine file, function and line number?
65148
Difference between launching a script with ./script.sh and . ./script.sh
33584
How to determine where an environment variable came from?
42029
Where do I find out how a command/environment is defined?
126609
What is the difference between running "bash script.sh" and "./script.sh"?
91653
Why does `at` warn me that commands will be executed using /bin/sh? What if I want a different shell?
32408
How can I identify what application is using a given file?
12149
How do I get the path and name of the file that is currently executing?
23782
How can I get distribution name and version number in a simple shell script?
8641
Which are the (Bash) shell special parameters/variables?
26095
Write18: capturing shell (script) output as command/variable?