From owner-cvs-all Wed Nov 21 10:54:37 2001 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id E19CF37B405; Wed, 21 Nov 2001 10:54:25 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id F1CBF81D18; Wed, 21 Nov 2001 12:54:25 -0600 (CST) Date: Wed, 21 Nov 2001 12:54:25 -0600 From: Alfred Perlstein To: Sheldon Hearn Cc: Ian Dowse , Brian Somers , Akinori MUSHA , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man1 builtin.1 src/bin/sh Makefile builtins.def sh.1 src/usr.bin/printf printf.1 Message-ID: <20011121125425.J13393@elvis.mu.org> References: <200111211246.aa59934@salmon.maths.tcd.ie> <33186.1006347398@axl.seasidesoftware.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <33186.1006347398@axl.seasidesoftware.co.za>; from sheldonh@starjuice.net on Wed, Nov 21, 2001 at 02:56:38PM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Sheldon Hearn [011121 06:55] wrote: > > > On Wed, 21 Nov 2001 12:46:47 GMT, Ian Dowse wrote: > > > The addition of the hexdigit/hexprint/zeropad to MAKEDEV and > > rc.network6 has already almost half-undone the 3k space reduction > > that occurred when the printf builtin was removed. I appreciate > > your effort to avoid bloat - it just seems a pity to have to add > > a pile of sh functions to any rc script that needs to do the things > > that printf did easily. > > I hear what you're saying, but these changes should be made regardless > of what knu is doing to the shell. > > These scripts should not rely on the presence of the standalone > printf(1), because they are both required at times when /usr may not yet > have been mounted. > > That said, the changes are certainly easier to swallow (from a > performance point of view) once test(1) is a shell builtin. :-) Since these are now builtins, wouldn't it sort of make sense to make 'sh' capable of being /bin/test, /bin/printf /whatever/builtin based on argv[0]? :) Then we can just use hardlinks, a bit gross, but it would save quite a bit of space imo. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message