From owner-freebsd-arch@freebsd.org Sat Jan 26 04:01:58 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 C602014AEED2 for ; Sat, 26 Jan 2019 04:01:58 +0000 (UTC) (envelope-from drosih@rpi.edu) 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 491CE8B257 for ; Sat, 26 Jan 2019 04:01:58 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: by mailman.ysv.freebsd.org (Postfix) id 0CD5714AEED1; Sat, 26 Jan 2019 04:01:58 +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 DE77D14AEED0 for ; Sat, 26 Jan 2019 04:01:57 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp9.server.rpi.edu (smtp9.server.rpi.edu [128.113.2.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7EAB98B252 for ; Sat, 26 Jan 2019 04:01:57 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth2.server.rpi.edu (smtp-auth2.server.rpi.edu [128.113.2.232]) by smtp9.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id x0Q3ueYI020025 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Jan 2019 22:56:41 -0500 Received: from smtp-auth2.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth2.server.rpi.edu (Postfix) with ESMTP id 6F37B18049; Fri, 25 Jan 2019 22:56:40 -0500 (EST) Received: from [192.168.2.33] (cpe-72-224-11-59.nycap.res.rr.com [72.224.11.59]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth2.server.rpi.edu (Postfix) with ESMTPSA id D14911802F; Fri, 25 Jan 2019 22:56:39 -0500 (EST) From: "Garance A Drosehn" To: arch@freebsd.org Subject: Re: Importing mksh in base Date: Fri, 25 Jan 2019 22:56:39 -0500 X-Mailer: MailMate (1.12.2r5570) Message-ID: <2366C672-5B23-4AF4-985F-8E741B092FF2@rpi.edu> In-Reply-To: <20190126064128.Y872@besplex.bde.org> References: <20190125165751.kpcjjncmf7j7maxd@ivaldir.net> <20190126064128.Y872@besplex.bde.org> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.01 () [Hold at 10.10] HTML_MESSAGE:0.001, T_TVD_MIME_NO_HEADERS:0.01 X-CanIt-Incident-Id: 02XsPUExC X-CanIt-Geo: ip=72.224.11.59; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 X-Rspamd-Queue-Id: 7EAB98B252 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sat, 26 Jan 2019 04:01:59 -0000 On 25 Jan 2019, at 14:53, Bruce Evans wrote: > On Fri, 25 Jan 2019, Gleb Popov wrote: > >> 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. I started using unix somewhere around 1990, moving from an IBM mainframe to solaris. I started out using csh because some unix gurus told me it was the cool shell. After a month or two I was trying to write some simple shell script in csh, and couldn't get the damn thing to work. I went back to those unix gurus, and they told me that csh couldn't do the specific thing I was trying to do (whatever that was), and that I should use /bin/sh for that. I thought it was a waste to learn one shell for interactive use and a different one for writing shell scripts. I've used bash or /bin/sh ever since. When I started to use FreeBSD sometime around 1995, I added these lines to ~root/.login on my machines: if ($?prompt) then if ( -x /usr/local/bin/bash ) then # echo "Switching to bash" setenv SHELL /usr/local/bin/bash exec /usr/local/bin/bash -login endif endif That way logins to root will work even if /usr/local is not available, or if something has destroyed the install of bash. So I have a lot of experience with bash and /bin/sh, almost no experience with csh or tcsh, and my familiarity with bash has nothing to do with linux. I'd also expect macOS users would be more used to bash, even though they might not even know what you were talking about if you asked them "do you prefer bash vs csh?". -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA