mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated SC2091 (markdown)
@@ -26,6 +26,8 @@ The problem is when you use `$(date +%F)` alone as a command. Bash evaluates the
|
||||
|
||||
Sometimes this results in this confounding `command not found` messages. Other times you get even stranger issues, like the example problematic code which always evaluates to false.
|
||||
|
||||
The solution is simply to remove the surrounding `$()`. This will execute the command instead of the command's output.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
If you really want to execute the output of a command rather than the command itself, you can ignore this message.
|
Reference in New Issue
Block a user