Skip to content
Vidar Holen edited this page Jun 6, 2021 · 1 revision

This is interpreted as a command name ending with '/'. Double check syntax.

Problematic code:

df/

Correct code:

df /

Rationale:

ShellCheck found a command name that ends with /. Since directories are not valid commands, this is always wrong.

The most common reason is bad quoting or escaping, such as in the example where a space was missing between a command and its argument.

Exceptions:

None

Related resources:

  • Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!

ShellCheck

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

Clone this wiki locally