test.sh
-----------------------------
echo $0
echo $1
echo $2
prompt> ./test.sh apple banana
parameter0 : ./test.sh
parameter1 : apple
parameter2 : banana
Numeric value | Meaning |
0 | success |
2 | Returned by built-in commands to indicate usage errors |
126 | Command was found but was not executable |
127 | Command not found |
128 + N | Command died due to receiving signal number N |
prompt> testcommand
-bash: testcommand: command not found
prompt> echo $?
127