Commit 3d603af
committed
Fix gcc wrappers when invoked with 0 arguments.
`${@}` is a single word, regardless of how many arguments were passed to
the program. To expand it as an array, it must be `$@`.
See https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html.
Fixes the following errors when invoked with 0 arguments:
```
docker/musl-gcc.sh: line 73: @: unbound variable
docker/freebsd-gcc.sh: line 16: @: unbound variable
```1 parent 9bca1e3 commit 3d603af
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
0 commit comments