bash set -e: How to find out on which line the script exited on?
25368
Error handling in Bash
3093
Find and kill a process in one line using bash and regex
28288
How do I kill background processes / jobs when my shell script exits?
70866
Check command success in bash
94622
How does one extract a command's exit status into a variable?
130622
How do I set up bash completion for command arguments?
104446
Find location of sourced shell script
58433
What's a concise way to check that environment variables are set in a Unix shell script?
106832
Bash Script on Startup? (Linux)
7431
How does ${!#} work in bash to get the last command-line argument?
41856
How to detect the desktop environment in a bash script?
17691
Determine path of the executing script
145669
Where is `exit` defined?
65085
Why do you need to put #!/bin/bash at the beginning of a script file?
107464
Ctrl+D for ending terminal line input
115854
How to identify the process that's sending error messages to terminal?
54838
determine shell in script during runtime