$ {1:?} Bash

bar=${1:?First argument missing} 
# It exits with code 1 the non-interactive shell if argument 1 
# does not exist and prints the message to sterr. 
RicarHincapie