mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2091 (markdown)
@@ -15,7 +15,7 @@ or
|
|||||||
make_command() {
|
make_command() {
|
||||||
printf 'cat header %q footer > %q\n' "$1" "$2" | tee log
|
printf 'cat header %q footer > %q\n' "$1" "$2" | tee log
|
||||||
}
|
}
|
||||||
$(make_command)
|
$(make_command foo.html output/foo.html)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Correct code:
|
### Correct code:
|
||||||
@@ -33,7 +33,7 @@ or
|
|||||||
make_command() {
|
make_command() {
|
||||||
printf 'cat header %q footer > %q\n' "$1" "$2" | tee log
|
printf 'cat header %q footer > %q\n' "$1" "$2" | tee log
|
||||||
}
|
}
|
||||||
eval "$(make_command)"
|
eval "$(make_command foo.html output/foo.html)"
|
||||||
```
|
```
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user