From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 982EB139083 for ; Thu, 14 Dec 2017 22:09:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1148E101C; Thu, 14 Dec 2017 22:09:23 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80062E0FE2 for ; Thu, 14 Dec 2017 22:09:23 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 8164033BEC7 for ; Thu, 14 Dec 2017 22:09:22 +0000 (UTC) Subject: Re: [gentoo-user] openrc : autoload kernel modules To: gentoo-user@lists.gentoo.org References: <5d127de0-72fd-4f01-bef3-17aefa37158b@gentoo.org> <20171214203052.bmvxkj7wudt4l3my@grusum.endjinn.de> From: Michael Orlitzky Message-ID: <87158e3f-bdd9-2ecc-03ee-0fa350fc05e5@gentoo.org> Date: Thu, 14 Dec 2017 17:09:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20171214203052.bmvxkj7wudt4l3my@grusum.endjinn.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: e1cf09ea-dfcf-4911-9cb3-2b6112a070f6 X-Archives-Hash: f8dee3741976206d0776fc46dc8f4beb 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.