From nobody Tue Mar 28 03:13:32 2023 X-Original-To: questions@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 4PlvsL4FFqz42Tvb for ; Tue, 28 Mar 2023 03:13:42 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PlvsK5JcSz3Brl for ; Tue, 28 Mar 2023 03:13:41 +0000 (UTC) (envelope-from kh@panix.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=panix.com header.s=panix header.b=oKcrgZYq; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com; dmarc=pass (policy=none) header.from=panix.com Received: from rain.cave (unknown [73.142.21.0]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4PlvsC2t35z3jYH for ; Mon, 27 Mar 2023 23:13:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1679973215; bh=/OaX1xmrKjx2sW/hfhmO5sxN8+SCuSx2GC9QQWBm2Ic=; h=Date:From:To:Subject:References:In-Reply-To; b=oKcrgZYqaDC+wYu58GZP8RuevVylMLR7bS6PfaW7uDhYydbpaXPFbn0gxVOnkBt5P PpG+1saMaKYEQp1Yhr+ryNnLloBwvxwKnXXi+Pxknt2loZ7RZj3ojksFLmmbHLr+Nx nD6823Rqr1l/sYTLkhtIu8L5dV+wkx44CnQ7+iJo= Date: Mon, 27 Mar 2023 23:13:32 -0400 From: Kurt Hackenberg To: questions@freebsd.org Subject: Re: Bye, bye, bash Message-ID: References: <585369190.19119.1679792115567@ichabod.co-bxl> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <585369190.19119.1679792115567@ichabod.co-bxl> User-Agent: Mutt/2.2.9 (2022-11-12) X-Spamd-Result: default: False [-4.09 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.992]; DMARC_POLICY_ALLOW(-0.50)[panix.com,none]; R_DKIM_ALLOW(-0.20)[panix.com:s=panix]; R_SPF_ALLOW(-0.20)[+ip4:166.84.1.64/26]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[166.84.1.89:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[panix.com:+]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PlvsK5JcSz3Brl X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N On Sun, Mar 26, 2023 at 01:55:15AM +0100, Sysadmin Lists wrote: >I find most people don't even know some of the features in bash exist. > >Just a few: > Commands for Manipulating the History > yank-nth-arg (M-C-y) ... That command-line editing is in the bash man page under "READLINE". The above, and the default, is Emacs style; there's also a vi style (which I haven't tried). Emacs normally treats the keyboard Alt keys as the modifier Meta, but that may not work on a terminal or terminal emulator, and of course bash always runs on a terminal. Emacs and bash have an alternative -- instead of modifying a key with Meta, precede it with the character Escape -- but that's slow to type, a real hindrance. Xterm has ways to make Alt-as-Meta work, but it gets complex. There are several settings and the "locale", which all interact, and bash and Emacs also have settings and locale. See the documentation. You could try xterm's main menu setting "Meta Sends Escape", and its corresponding resource metaSendsEscape. That might work. I don't know about other terminal emulators.