From nobody Tue Oct 05 21:28:32 2021 X-Original-To: freebsd-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 84F8A12D6882 for ; Tue, 5 Oct 2021 21:28:32 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 4HP9gN2N3qz3hVm; Tue, 5 Oct 2021 21:28:32 +0000 (UTC) (envelope-from pstef@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1633469312; 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=0h9/2RJUXq1LAk+p8/Gy7iZKRwjr1x/VG40Ks65X5xU=; b=Woz2xLtpVBp2islhscMDGwUhEQupH+GbUikPN6XO/i+wvb2E+j4V0b7bmr5xOcR+RVgd5Z gjKX8S2pv32PYnB//21S3fNgU2AXT8OKx8kfEZeEMot0OpFJx1fPaCOAa7S/CmCsrmufS3 pHEcagwGILpsnRPAorQh8HYy/1Ls8NhPs0mrpp5FBV5lY743i5CoE7AT/N07PFG+z7+7AC yXx7J5TqQi6DOD79FPwkwh/0guGDUE4UrwJ4fXOITRDZhkLlXzkdqd3Mp0V3EiflGG9woO uzkwd2a4IOxtyGZqMsfSxu2z6rTt82pw+2kY7SRn0L6GMZ1pq8Swhpp9Gi7nxw== Received: by freefall.freebsd.org (Postfix, from userid 1403) id 10448F0B3; Tue, 5 Oct 2021 21:28:32 +0000 (UTC) Date: Tue, 5 Oct 2021 21:28:32 +0000 From: "Piotr P. Stefaniak" To: Baptiste Daroussin Cc: daniel@morante.net, freebsd-current@freebsd.org Subject: Re: [HEADSUP] making /bin/sh the default shell for root Message-ID: References: <20210922083645.4vnoajyvwq6wfhdf@aniel.nours.eu> <20210922093236.azun2pqciabo3fem@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: <20210922093236.azun2pqciabo3fem@aniel.nours.eu> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1633469312; 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=0h9/2RJUXq1LAk+p8/Gy7iZKRwjr1x/VG40Ks65X5xU=; b=JB0nyQRMYXDGrgGCDt/XQ4lOcmJJ4CYJll2jN1W2Z5LfWHAhQaY9g4+pACx82cH0EL2Tzz WIbrec0PAEW42+gZF4/UL0sD/cf9AFV3IiCwvZUeXIn2fOqK0oQW+O3TPCaIUNZ9jg7gd7 jb7fyDzMeF1TyKT1xyYBvn4+nkHYbhsTdVxH9oWk5/brn/A1ShnDKnHqlzCf5SVQXIVCGR m7UtgJYL+2lU9/6Gzg7/giGeASL+RIdBs/9/N2Ugjg3vJk9wlC/K2iMVcCnK/jQsdoZpj/ ZhnwEYLGbdzsgt0HPj9EPPvyem0p3rcB5YAjgDxYld5R3YjmUkjo09cMDqlJ1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1633469312; a=rsa-sha256; cv=none; b=LDKAluL6kZFYtw0slkDUwhz3wUewFlRlAh9qYukjEZguEwzrpz/Mf4fB5xEJpOIaQh0PYT +j8cgssENBKarUcd33n5Bhq9Mr3DFD6fAF6gbNUOicTP6zBM+EDLPBUhzC4PHyihSz4pYE gPh4OcN2a8xbl7bz7y9HO8Ww3Tbty5agSKkZdk9UJZD9/xHWFCMUqT3Xy0OlqsPlHUvP3H tyEBqxsboLIGYWHxTLgctd3nxOE+pYUNGkooTG8M4gIc433S0+5nDGxjwXE6+m3BVvN9BH pDyJdj0a27EC4/W/3s82Q1Mk3piz/4fMra6KsH0rPTjIgZJSB7XtqCKbYEar2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 2021-09-22 11:32:36, Baptiste Daroussin wrote: >On Wed, Sep 22, 2021 at 05:19:38AM -0400, Daniel Morante via freebsd-current wrote: >> Will history/completion continue to work the same way? (for example typing >> part of the command, pressing UP and having it complete based on history) > >No, this is a csh specific behaviour. (not it can probably be doable via >.shrc, but I haven't checked) I think that it can be recreated in sh. This works for me: bind ^[[A ed-search-prev-history bind ^[[B ed-search-next-history I believe ^V should work as well as ^[[A or better. That is not to claim anything about future defaults. This is just a tip.