1 |
On 12/14/2017 03:30 PM, David Haller wrote: |
2 |
> |
3 |
> Does openrc-run (or the old way) support adding to strings? I.e.: |
4 |
> |
5 |
> ==== |
6 |
> modules+=" foo" |
7 |
> modules+=" bar" |
8 |
> ==== |
9 |
> |
10 |
> or must one use |
11 |
> |
12 |
> ==== |
13 |
> modules="${modules} foo" |
14 |
> modules="${modules} bar" |
15 |
> ==== |
16 |
> |
17 |
> or must it even be one single string? Does that support embedded |
18 |
> linebreaks? |
19 |
|
20 |
It's all shell script that gets passed through /bin/sh, so you can get |
21 |
away with anything that will work in your /bin/sh. If you plan on |
22 |
distributing your changes, though, then you should stick to POSIX sh |
23 |
because you never know what the end user will be running. |