From nobody Wed Sep 22 12:59:23 2021 X-Original-To: current@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 8B1E417D1D5D; Wed, 22 Sep 2021 12:59:23 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HDyzv3Zq9z58cT; Wed, 22 Sep 2021 12:59:23 +0000 (UTC) (envelope-from pstef@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1632315563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kdJF+c4kWHe78CyiXZwcvlBi03+FrPqs0JGTCsflGhs=; b=N9VyPEBhVV4yt+hSjlHtP6qLdLzeATLnukJh/SYy2afGv1ZQI0bjo9EtehJRNMkX93x3Br YocHOyizTOPWl9b3gUBxbQIXOsTDi0YC9o2xfhfdTp5XactHRV5o84pcsG91RKF+F9zfIq v0O+NFxYQKHwo/q5pZvhDmAZwksZAS0aE7ePsjcc6QkBnOfBho4VpWP0C3fn+LrWcCPQYm X0IOhPZOHh6orWTn0e6oSM6FNe3bIfFscPQukAsVI4oAXppDhW1v9AgjV7BPxjXRjdouJD 1nFW/oNvXewjl4tUktXF2f7ST6hw1drvbxM81QdOcLNhBZVuI010AmH1jXE40Q== Received: by freefall.freebsd.org (Postfix, from userid 1403) id 67309116A1; Wed, 22 Sep 2021 12:59:23 +0000 (UTC) Date: Wed, 22 Sep 2021 12:59:23 +0000 From: "Piotr P. Stefaniak" To: Baptiste Daroussin Cc: current@freebsd.org, arch@freebsd.org Subject: Re: [HEADSUP] making /bin/sh the default shell for root Message-ID: References: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1632315563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kdJF+c4kWHe78CyiXZwcvlBi03+FrPqs0JGTCsflGhs=; b=eyuBy+mSUEHNUx0sHRQpbc0+inPWPaBn4H2bbzDNqfRCL+ID73jLWQUQs5pnVG+QMelyEI WXJkgGwPzP4scIqDKQMmAiuBYLKob4JpsgiyxB0m454Ljms5XEYO1N6YLmUFMEa1BWHDKE wQbtWC/quUQhyVFn//O+pcsXZV11sqFmWSMXKhp/81tbqG5KI+Z8/vuWVdnBOeJZPmLlVo MfGy2Lppn1pSX0b15Ka27OHUKNRIdvv25y2U9vkpcegTWRdYdLy49ndEoIP9kMjmgMp7at Rfneno/WGSwTIU1HzI79JTB1W2Zw4RsKPvNzxSFUW6uRVlCvoqL0gDTd7DWeZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1632315563; a=rsa-sha256; cv=none; b=ScxBRaE8tW6bo7ljGB3W5hMzDrbla6FauEvkE3mG2RlTjXOzEZdcAnV9w4HqZ8wZ6LfXo6 8BfXVf35ffmBgTddGZ+Jcu0tu2Yt60vgT63gRDePl9Rx+szmaTIciFlEZ8RaGs2Zb0drEo BykYAymJACa3hhSuQEmlgWHjsOf6TA9IIxAdJPt9YkKVmRR9qjLEDGcuLYrHTiLoy2Mpyb WdknW6LE//sRcMhfkZWdsjwGHhDHpywxgYRREQxehjU18kYUPPKAqD3ebjQrghvNI4XaJW YL3VfIkFW/WqgPJOa4qycncqHFrIMPrpUyyYzrmEZyQ78MvrqASVb6B3SRwU3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 2021-09-22 10:36:45, Baptiste Daroussin wrote: >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. There are also prompt-related commits done by trasz: r342577 Make sh(1) collapse $HOME into "~" in PS1 r342576 Simplify the way we set the default sh(1) PS1 r342645 Add current working directory to the default sh prompt r342812 Give sh(1) a proper default prompt instead of just "$". r342881 Make sh(1) recognize the default $HOME r343231 Don't mess with BLOCKSIZE in shell startup files r343399 Make sh(1) support \u in PS1 r343416 Install .shrc for root, and set PS1 for the toor account. and this commit by me: r363621 sh(1): print a newline when ^D quits sh What I would like to see by default are these ctrl-arrow bindings in emacs mode and an alias for "history": bind "\\e[1;5C" em-next-word bind "\\e[1;5D" ed-prev-word alias history='fc -l' Piotr