Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash sh: line [: too many arguments

## put in double quotes
# If like her:
if [ -z $1 ]; then exit 1; fi
# change to
if [ -z "${1}" ]; then exit 1; fi
 
PREVIOUS NEXT
Tagged: #bash #line #arguments
ADD COMMENT
Topic
Name
9+2 =