On Fri, 22 Jun 2007 01:56:38 -0400 Alan Mizrahi <alan+crux@mizrahi.com.ve> wrote:
If we are going to update the "rc" package, may I propose some enhacements:
Transforming the SERVICES array to a list. I mean:
-SERVICES=(net crond) +SERVICES="net crond"
Then we could change the interpreter from /bin/bash to /bin/sh in every rc script, and make /bin/sh a symlink to /bin/mksh.
mksh is faster and requires less memory than bash. I think bash should only be used for interactive shells, or only if really needed.
On a sidenote to this, I'd like to mention something I though of recently, however, irc gave no real feedback, so here I go again. First of all prtcreate really does the wrong thing when it creates templates for a new Pkgfile, since it sets source=(), rather than source="". This is a two character fix to the script, and causes no problems at all AFAIK. The second thing I'd like to suggest is that prtverify starts to issue a warning on Pkgfiles containing source=(). These are small, simple and non-intrusive steps towards getting rid of bashisms, and should been ideally be seen as first babysteps towards getting the ports system more, ahem, portable. :) As for what shell to use, I'd like to point to dash, already in use by debian/ubuntu, which seems to be more strictly POSIX compliant. I'll leave the question of which one of these are the better to smarter people than me, but I'd like to hear some responses to this - including from the people actually in charge. :> regards treach