On 12/14/2017 03:30 PM, David Haller wrote:
> 
> Does openrc-run (or the old way) support adding to strings? I.e.:
> 
> ====
> modules+=" foo"
> modules+=" bar"
> ====
> 
> or must one use
> 
> ====
> modules="${modules} foo"
> modules="${modules} bar"
> ====
> 
> or must it even be one single string? Does that support embedded
> linebreaks?

It's all shell script that gets passed through /bin/sh, so you can get
away with anything that will work in your /bin/sh. If you plan on
distributing your changes, though, then you should stick to POSIX sh
because you never know what the end user will be running.

Reply via email to