From owner-freebsd-current@freebsd.org Thu May 6 21:25:04 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8F96962E475 for ; Thu, 6 May 2021 21:25:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FbmnX3jZGz55Ky for ; Thu, 6 May 2021 21:25:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7DABF62E474; Thu, 6 May 2021 21:25:04 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D78062E6B8 for ; Thu, 6 May 2021 21:25:04 +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 4FbmnX3Bsvz54s9 for ; Thu, 6 May 2021 21:25:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from aniel.nours.eu (ns393929.ip-176-31-115.eu [176.31.115.77]) (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 4876D2CEF1 for ; Thu, 6 May 2021 21:25:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id DF3C14065A; Thu, 6 May 2021 23:25:01 +0200 (CEST) Date: Thu, 6 May 2021 23:25:01 +0200 From: Baptiste Daroussin To: current@freebsd.org Subject: Incoming changes in the sh(1) default behaviour Message-ID: <20210506212501.sm33y4on3pbattjj@aniel.nours.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 21:25:04 -0000 Hello everyone We have been working implementing the persistent history storage in sh(1). It will now respect POSIX: - by default the history will be saved and loaded from ~/.sh_history - if HISTFILE is set it will use histfile instead of ~/.sh_history - if HISTFILE is set but empty it will not load or save anything - if HISTSIZE is set to 0 it will also not load or save anything The change will be pushed very soon to head and probably not be MFC except if someone manage to convince me otherwise. https://reviews.freebsd.org/D29493 Best regards, Bapt