Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 2 revisions

You need a space before the !.

Problematic code:

while! [ -f file ]
do sleep 1; done

Correct code:

while ! [ -f file ]
do sleep 1; done

Rationale:

ShellCheck found a keyword immediately followed by a !. There needs to be a space between them.

Exceptions:

None

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature guerraart8 to find a specific , or see Checks.

Clone this wiki locally