backtick
The ` character, which in shell scripts is the old way to write command substitution.
In more detail
Backticks do the same job as $( ) but nest badly, because inner backticks must be escaped with backslashes, and they are easy to confuse with single quotes. ShellCheck flags them; write $( ) in new scripts.
Related terms
- command substitution — Running a command inside $( ) and replacing it with that command's standard output, as in today=$(date).
- ShellCheck — A linter for shell scripts that reports quoting mistakes, portability problems and common bugs, each with a numbered code.
Taught in
- Single Quotes, Double Quotes, Backslash — Bash Scripting & Command Line Automation
- Command Substitution And Subshells — Bash Scripting & Command Line Automation
- ShellCheck — Bash Scripting & Command Line Automation
- Style That Prevents Bugs — Bash Scripting & Command Line Automation