1
0
mirror of https://github.com/koalaman/shellcheck.git synced 2025-03-12 12:35:25 -07:00

Updated SC2091 (markdown)

koalaman 2015-04-29 09:51:18 -07:00
parent c77f358da3
commit 647abe3142

@ -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.