mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2091 (markdown)
@@ -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"
|
||||
```
|
||||
|
Reference in New Issue
Block a user