Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] openrc : autoload kernel modules
Date: Thu, 14 Dec 2017 22:09:28
Message-Id: 87158e3f-bdd9-2ecc-03ee-0fa350fc05e5@gentoo.org
In Reply to: Re: [gentoo-user] openrc : autoload kernel modules by David Haller
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.