SC1019 – ShellCheck Wiki

See this page on GitHub


Expected this to be an argument to the unary condition.

Problematic code:

[ -x ]

Correct code:

[ -x "myfile" ]


ShellCheck has found a unary test operator that does not appear to be followed by a valid shell word.

This could be because of a misplaced ], ), or a missing space before the ].

Check the syntax, make sure the test operator has an operand, and try again.



ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.