mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2091 (markdown)
@@ -37,5 +37,9 @@ The solution is simply to remove the surrounding `$()`. This will execute the co
|
||||
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"
|
||||
$command_to_execute
|
||||
```
|
||||
|
||||
### Related resources:
|
||||
|
||||
* StackOverflow: [Bash Function -> Command not found](https://stackoverflow.com/questions/18611842/bash-function-command-not-found)
|
Reference in New Issue
Block a user