From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] How to move to rc from sh/bash From: erik quanstrom Date: Mon, 11 Feb 2008 10:04:25 -0500 In-Reply-To: <20080210181244.GA801@shodan.homeunix.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4ff75078-ead3-11e9-9d60-3106f5b1d025 > Well, that isn't so much about rc's advantages. Keep in mind though that > this would force getflags to be present whenever you need a shell script. > For most installations this isn't an issue, but for those running Plan 9 > embedded it is. And with space constraints providing some of /rc/bin might > be reasonable, providing aux/getflags might not. i don't buy this argument. if you're running plan 9 with rc & scripts, you have many MB of ram and mmu and several MB of persistant storage. it's hard to get small flash parts these days. i can't see 64k mattering. > Besides, if a script > doesn't use more than two or three different options getflags doesn't reduce > much complexity (if you aren't writing a new script). And concerning speed, > if command line parsing dominates the execution time I honestly wouldn't > bother. i would think that the reason to do this would be for consistency. i don't know that that's a compelling argument. but i can see the attraction of all or nothing; it would be nice if either none of the scripts used getflags or all of them did. - erik