From nobody Thu Sep 23 02:56:25 2021 X-Original-To: arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0CAE217D0716; Thu, 23 Sep 2021 02:56:27 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HFKYk6whGz4bGL; Thu, 23 Sep 2021 02:56:26 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id B5D40E56C; Thu, 23 Sep 2021 02:56:26 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 243FFB4449; Thu, 23 Sep 2021 04:56:25 +0200 (CEST) Date: Thu, 23 Sep 2021 04:56:25 +0200 From: Baptiste Daroussin To: Alban Hertroys Cc: current@freebsd.org, "arch@freebsd.org" Subject: Re: [HEADSUP] making /bin/sh the default shell for root Message-ID: <20210923025625.wtufdwbmq47qsxbv@aniel.nours.eu> References: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> <9A7E9AB0-1A59-4E8C-86EC-EFD8A3147112@gmail.com> List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9A7E9AB0-1A59-4E8C-86EC-EFD8A3147112@gmail.com> X-ThisMailContainsUnwantedMimeParts: N On Wed, Sep 22, 2021 at 10:03:40PM +0200, Alban Hertroys wrote: > > > On 22 Sep 2021, at 10:36, Baptiste Daroussin wrote: > > > > Hello, > > > > TL;DR: this is not a proposal to deorbit csh from base!!! > > (…) > > > Recently our sh(1) has receive update to make it more user friendly in > > interactive mode: > > * command completion (thanks pstef@) > > * improvement in the emacs mode, to make it behave by default like other shells > > * improvement in the vi mode (in particular the vi edit to respect $EDITOR) > > * support for history as described by POSIX. > > > > This makes it a usable shell by default, which is why I would like to propose to > > make it the default shell for root starting FreeBSD 14.0-RELEASE (not MFCed) > > My one concern is this: what is the impact of these usability improvements to sh on its usage in scripts? None, those are in a code path with doesn't get executed when in non interactive mode. Best regards, Bapt