From 9bc5a5bde4846ebc31d464489bb86cbf3d1d8aca Mon Sep 17 00:00:00 2001 From: philippgl Date: Tue, 22 Aug 2017 10:57:56 +0200 Subject: [PATCH] Updated SC2091 (markdown) --- SC2091.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SC2091.md b/SC2091.md index 97ec79e..8eea402 100644 --- a/SC2091.md +++ b/SC2091.md @@ -34,4 +34,8 @@ The solution is simply to remove the surrounding `$()`. This will execute the co ### Exceptions: -If you really want to execute the output of a command rather than the command itself, you can ignore this message. +If you really want to execute the output of a command rather than the command itself, you can ignore this message or assign the output to a new variable first: +```sh +readonly command_to_execute="$(print_the_command)" +"$command_to_execute" +```