"which" command not work in shell script with #!/bin/bash but work with #!/bin/zsh
2320
Why not use "which"? What to use then?
36359
What does $# mean in shell?
3006
Parenthesis works in bash shell itself, but not in bash script
30228
How do I check which shell I am using?
26946
How do you find the directory of a command?
127735
Difference between / and // directories in bash OSX
139670
Why won't this command work?
142486
What is the difference if I start bash with "/bin/bash" or "/usr/bin/env bash"?
68373
Shell script runs with bash but not with sh. Why and how to fix it?
78855
bash, command not found
157559
In a Bash if condition, how to check whether any files matching a simple wildcard expression exist?
7431
How does ${!#} work in bash to get the last command-line argument?
91653
Why does `at` warn me that commands will be executed using /bin/sh? What if I want a different shell?
139274
What's the difference between 'sudo [command]' and 'sudo sh [command]?
22156
How do I tell if a regular file does not exist in Bash?
97019
Linux command "which" doesn't locate executable files on NFS path under Ubuntu
20082
Does the shebang determine the shell which runs the script?