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" +```