From owner-cvs-all Fri Nov 23 0:51: 4 2001 Delivered-To: cvs-all@freebsd.org Received: from hal-5.inet.it (hal-5.inet.it [213.92.5.24]) by hub.freebsd.org (Postfix) with ESMTP id 9A7AA37B405 for ; Fri, 23 Nov 2001 00:50:56 -0800 (PST) Received: (from root@localhost) by hal-5.inet.it (8.11.1/8.11.1) id fAN8otU220880 for ; Fri, 23 Nov 2001 09:50:55 +0100 Received: from acampi.inet.it(213.92.1.165) by hal-5.inet.it via I-SMTP id s-213.92.1.165-u6RBcm; Fri Nov 23 09:50:55 2001 Received: from webcom.it (brian.inet.it [213.92.1.190]) by acampi.inet.it (Postfix) with SMTP id 87C5A1554F for ; Fri, 23 Nov 2001 09:50:54 +0100 (CET) Received: (qmail 14660 invoked by uid 1000); 23 Nov 2001 08:50:38 -0000 Date: Fri, 23 Nov 2001 09:50:38 +0100 From: Andrea Campi To: Peter Jeremy Cc: Mark Murray , Bruce Evans , Sheldon Hearn , 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: <20011123085038.GB960@webcom.it> References: <20011122015842.T9998-100000@delplex.bde.org> <200111221012.fAMACqN35344@grimreaper.grondar.org> <20011123105232.Q94635@gsmx07.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011123105232.Q94635@gsmx07.alcatel.com.au> User-Agent: Mutt/1.3.23.2i X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike 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 > As I see it, the options are: > 1) Accept the bloat - which is probably OK except for PicoBSD and > the install/fixit floppies where space is at a premium. > 2) Drop the ability to do '~' expansion. > 3) Have a small statically linked shell in /bin and an "all the bells > and whistles" version in /usr/bin. > 4) Arrange /bin/sh to dynamically load /usr/lib/libc.so if it's > available when getpwnam() is called, otherwise use a staticly > linked version that only uses /etc/passwd. > > Option 4 would seem to solve the bloat problem without losing the > ability to ~-expand a YP username. (And if /usr isn't mounted, > there's a reasable likelihood that the network isn't up so YP isn't > available anyway). I'm less certain how practical this is since it > requires the ability to try to dynamically link a library from an > otherwise static executable when neither the library nor the loader > may be available. What about making /bin/sh a small, static, ~-less executable which as first thing tries to exec /usr/bin/sh (big regular dynamic shell) if /usr is mounted? I know, it's a departure from tradition, but it could still be useful. Just my E 0.02 Bye, Brian > > Peter > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message -- Tagline generated by 'gensig' mail-client-independent .signature generator. Get your copy at http://www.geeks.com/~robf/gensig/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message