diff --git a/SC2091.md b/SC2091.md index 0d47d07..68cd3e3 100644 --- a/SC2091.md +++ b/SC2091.md @@ -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. \ No newline at end of file