From owner-freebsd-questions@freebsd.org Fri Jan 10 18:05:30 2020 Return-Path: Delivered-To: freebsd-questions@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 17C7B1EE203 for ; Fri, 10 Jan 2020 18:05:30 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47vW9j1s1Rz3NtS for ; Fri, 10 Jan 2020 18:05:29 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 88793 invoked from network); 10 Jan 2020 18:05:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:user-agent; s=15ad7.5e18bce8.k2001; i=johnl-iecc.com@submit.iecc.com; bh=KZpD1vNI3pyXebBNR4OXc9cO/v+MfeaSE8Kw/Sk9yqo=; b=kQDCHacNPO+ATedrLL4c698Swaygfj4S/bxF8lsuk3V827HRr6PEc6TkihQoDpuF5MFPMZnzRc67zkl+/DUa8TpoOekB9Jk+K2P2rijMvsnMIapf/KY81q01cVI+kbWvaAPkIYKxVj2dtEY0MULt8lCSWjyZek22dz7ZdzEvDKvSgQ0f8rHIZ++EJKo0lJ51VjAMggqhPUgBylDxvYyqWQrhtFn/U+NmdDtgU31pdAwy4jiSwck4NkLXdvR1Mbzt Received: from localhost ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPSA (TLS1.3 ECDHE-RSA AES-256-GCM AEAD, johnl@iecc.com) via TCP6; 10 Jan 2020 18:05:28 -0000 Date: 10 Jan 2020 13:05:27 -0500 Message-ID: From: "John R. Levine" To: "Ottavio Caruso" Cc: freebsd-questions@freebsd.org, byrnejb@harte-lyne.ca Subject: Re: /bin/sh save history In-Reply-To: References: <0dbba1cf7eeb52e8f398d61434eaceb4.squirrel@webmail.harte-lyne.ca> <20200110171111.E14751225C9C@ary.qy> User-Agent: Alpine 2.21.99999 (OSX 374 2019-10-27) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47vW9j1s1Rz3NtS X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=15ad7.5e18bce8.k2001 header.b=kQDCHacN; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-7.63 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(0.00)[iecc.com:s=15ad7.5e18bce8.k2001]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(0.00)[+ip6:2001:470:1f07:1126::/64:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; DMARC_POLICY_ALLOW(0.00)[iecc.com,none]; DWL_DNSWL_MED(-2.00)[iecc.com.dwl.dnswl.org : 127.0.4.2]; IP_SCORE(-3.64)[ip: (-9.90), ipnet: 2001:470::/32(-4.67), asn: 6939(-3.57), country: US(-0.05)]; FREEMAIL_TO(0.00)[googlemail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; URIBL_PBL(0.01)[jl.ly]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2020 18:05:30 -0000 >>> Is there no way to specify a history file for /bin/sh and >>> automatically save / merge the session hitory with that of previous >>> and concurrent sessions? >> >> No. For that you need bash from ports or packages. > > /bin/tsch in base system has a ./.history file and can be configured > to scroll history back and forth like bash: Yes, but that uses csh syntax rather than sh syntax. Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly