From owner-freebsd-arch@freebsd.org Fri Jan 25 20:21:04 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A966A14C1DA5 for ; Fri, 25 Jan 2019 20:21:04 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 213F470C52 for ; Fri, 25 Jan 2019 20:21:04 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: by mailman.ysv.freebsd.org (Postfix) id D8FAF14C1D9B; Fri, 25 Jan 2019 20:21:03 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DFF614C1D9A for ; Fri, 25 Jan 2019 20:21:03 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D1C670C38; Fri, 25 Jan 2019 20:21:01 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id n7yEgYJSe82Ycn7yGgbxZ1; Fri, 25 Jan 2019 13:21:00 -0700 X-Authority-Analysis: v=2.3 cv=NNSrBHyg c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=3JhidrIBZZsA:10 a=JzwRw_2MAAAA:8 a=6I5d2MoRAAAA:8 a=kMf0utG4AAAA:8 a=YxBL1-UpAAAA:8 a=7_TbikLA5MIYgdiOwJAA:9 a=CjuIK1q_8ugA:10 a=of2mfszF-hMA:10 a=_bBvcJC8wCc67rcU61zu:22 a=IjZwj45LgO3ly-622nXo:22 a=TTWE1O2ssfbasxdXZsrT:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id B060E103F; Fri, 25 Jan 2019 12:21:34 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x0PKKvDP049436; Fri, 25 Jan 2019 12:20:57 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x0PKKv3N049433; Fri, 25 Jan 2019 12:20:57 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201901252020.x0PKKv3N049433@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Bruce Evans cc: Gleb Popov , arch@freebsd.org, Baptiste Daroussin Subject: Re: Importing mksh in base In-Reply-To: Message from Bruce Evans of "Sat, 26 Jan 2019 06:53:11 +1100." <20190126064128.Y872@besplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Jan 2019 12:20:57 -0800 X-CMAE-Envelope: MS4wfF5Ox7S4x44hizJ2TadEiQWb53mtVL99dJo5QvkPNZc6ND8w6jVamj/X+VbUDf9xJRXf/Wavb+C0UCyCtrE2y9LS7UNW3XxSDjmU5wsxfKYIA81hpXpt vUlYeJ/iCLRoei70WIvkeUoKSSFPKahKF7PPNnnVaLO6roNa3tNk4YIR6TZD9Xn1QLevwGAJtbUsyjXwJwVRiGMFmp36NIHroZBHSqmHoLbOZcETOcoqejoK Lt/82n8ztGsz++XntI+1PQaMAjMGdTOHfXzGJcrHSNg= X-Rspamd-Queue-Id: 0D1C670C38 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.37 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.89)[-0.892,0]; FREEMAIL_TO(0.00)[optusnet.com.au]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_LOW(-0.10)[137.136.59.64.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; IP_SCORE(-1.77)[ip: (-4.44), ipnet: 64.59.128.0/20(-2.43), asn: 6327(-1.88), country: CA(-0.09)] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 20:21:05 -0000 In message <20190126064128.Y872@besplex.bde.org>, Bruce Evans writes: > On Fri, 25 Jan 2019, Gleb Popov wrote: > > > On Fri, Jan 25, 2019 at 8:58 PM Baptiste Daroussin wrote > : > > > >> I would like to import mksh in base, https://www.mirbsd.org/mksh.htm > >> And make it the default root shell (not necessary in one step) > >> > >> Why: > >> 1/ it is tiny 400k (in the packaged version) all other shells fitting the > >> expectation are bigger > >> 2/ it's default frontend in interactive mode is very close to what most > >> people > >> are used to with bash > > You should warm up with a more modest task, such as replacing vi by emacs > as the default editor. > > > Are there FreeBSD users that are used to bash? If not, this proposal looks > > like another "let's do like Linux" thing. > > I have used /bin/bash as the root shell for more about 20 years. The > currently install version is slightly newer -- only about 15 years old > (bash-1.14.7(1) installed by mv'ing it from /usr/local/bin where some > port put it. That's a little risky unless it's static, which Bruce, I know you do. > > toor still uses csh, but I never use toor. > > I still use /bin/sh and of course /bin/ed for the single user shell and > editing there, except on one system which is misconfigured with /usr > on the root partition so that vi is accidentally available for editing. > If need, I exec bin/bash from /bin/sh or mount /usr, but my /usr is > usually on nfs and most boot-time editing is to fix network > configuratation so that nfs is available. This is my workaround. It avoids a lot of single-user grief. We used a form of it on Solaris many moons ago. case $(tty) in /dev/console|/dev/ttyv?|/dev/ttyd?) echo Using default shell of $SHELL ;; *) if [ -x /usr/local/bin/bash ]; then echo starting bash shell OSHELL=$SHELL SHELL=/usr/local/bin/bash export SHELL $SHELL < /dev/null && exec $SHELL SHELL=$OSHELL unset OSHELL echo Unable to execute /usr/local/bin/bash or not found, using default shell of $SHELL fi ;; esac -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.