Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

${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. 
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #bash
ADD COMMENT
Topic
Name
4+3 =