Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 404 Bytes

SC1020.md

File metadata and controls

23 lines (14 loc) · 404 Bytes

Pattern: Missing space before ]

Issue: -

Description

Bourne shells are whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script.

Example of incorrect code:

if [ "$STUFF" = ""]; then

Example of correct code:

if [ "$STUFF" = "" ]; then

Further Reading