Skip to content

Files

Latest commit

 

History

History
29 lines (19 loc) · 709 Bytes

SC2289.md

File metadata and controls

29 lines (19 loc) · 709 Bytes

Pattern: Use of unusual symbol in command name

Issue: -

Description

ShellCheck found a command name containing an especially unusual character like a tab or linefeed. This is most likely due to a syntax issue.

In the example, this was due to a Python style documentation string, which a shell will merely interpreted as a multi-line command name sandwiched between two empty strings.

Example of incorrect code:

'''
This script greets the planet
'''
echo "Hello World"

Example of correct code:

# This script greets the planet
echo "Hello World"

Further Reading