The test seems not to work properly. Why ? I need a script which takes the first argument, checks which letter it is and does the job. If the letter is a,b,c or d it exits, otherwise rights something.
letter=$1                                                                                                                                             
[[ $letter != a || $letter != b || $letter != c || $letter != d ]] && echo exiting && exit 1                                                          
if [[ $letter == a ]]                                                                                                                                 
then                                                                                                                                                  
echo correct                                                                                                                                      
fi
 
    