(I'm using bash 3.2 in the Terminal app on OS X 10.11.4.)
I have this line in my .bashrc file: alias ll='ls -alFh'
I ran echo ll > test && chmod +x test to create a test executable. Below are the results of running multiple commands, their exit codes (via echo $?), and stdout:
- test
 exit code 1
 produces no stdout
- ./test
 exit code 127
 produces- ./test: line 1: ll: command not found
- . test
 exit code 127
 produces- -bash: ????: command not found
- . ./test
 exit code 0
 produces identical result to manually running- ll
I understand that exit code 1 is a generic error and that exit code 127 means the shell can't find the command. Will someone please explain what is happening in each of these cases and why, including a description of the stdout? I am especially confused at #3 with the ????.
 
     
     
    