SC2023 – ShellCheck Wiki

See this page on GitHub

Sitemap


The shell may override time as seen in man time(1). Use command time .. for that one.

Problematic code:

time -some some

Correct code:

command time -some some

Rationale:

time is a built-in command. If you would like to use time from $PATH, you need to use command to execute it as a regular command.

Exceptions:

None


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