X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.nor.wtbts.net (3.203.202.84.customer.cdi.no [84.202.203.3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id F11B9DC0FAA; Mon, 5 Mar 2012 16:00:14 +0000 (UTC) Date: Mon, 5 Mar 2012 17:00:12 +0100 From: Natanael Copa To: Jim Pryor Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Understanding alpine-setup Message-ID: <20120305170012.255cf4a2@ncopa-desktop.nor.wtbts.net> In-Reply-To: <1330959432.27492.140661045039645@webmail.messagingengine.com> References: <1330852060.31716.140661044540177@webmail.messagingengine.com> <20120305094554.23727d3c@ncopa-desktop.nor.wtbts.net> <1330941814.16357.140661044929169@webmail.messagingengine.com> <20120305152103.08b6b9d8@ncopa-desktop.nor.wtbts.net> <1330959432.27492.140661045039645@webmail.messagingengine.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 05 Mar 2012 09:57:12 -0500 Jim Pryor wrote: > On Mon, Mar 5, 2012, at 03:21 PM, Natanael Copa wrote: > > > > But while working on all those scripts I have various times thought > > that the shell things are a bit clumsy, and I miss > > arrays/hashtables. Specially for things like setup-apkrepos, > > setup-interfaces and setup-disk. I already have a lua moule in > > progress for parsing /sys and fishing out disk and partition info > > in convenient data structures. Bash is way to big be considered (it > > doesnt help that its slow either). > > > > I must admit that using shell if possible is a good thing. I just > > feel that we are at the limit where something stronger is wanted. > > Hi Natanael, thanks for the explanations. I haven't yet gotten to know > ACF, so have no appreciation of what better integration with that > framework might call for. > > For things like arrays/hashtables, though, mightn't awk suffice? It's > not sh, but it is still part of BusyBox. Yes, awk could be used. I still feel it a bit clumsy compared to write it all in Lua. > I'm not at all anti-Lua; I've written a number of Lua libraries. And > I'm just beginning to learn your system, so can at best dimly > understand the pressures you feel. But I've always liked lightweight > solutions, that's what draws me to your distro. So I just thought I'd > ask and try to understand this better. I agree with you and I want be as lightweight as possible. In this case I have considered Lua as an acceptable middle way. I will think of what you say though. I am not married with Lua in this case :) -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---