From 647abe314213c0c57f57904f564ba32d360050f2 Mon Sep 17 00:00:00 2001 From: koalaman Date: Wed, 29 Apr 2015 09:51:18 -0700 Subject: [PATCH] Updated SC2091 (markdown) --- SC2091.md | 2 ++ 1 file changed, 2 insertions(+) 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