From owner-freebsd-questions@freebsd.org Wed Aug 26 16:37:46 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 5965B3B1A66 for ; Wed, 26 Aug 2020 16:37:46 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (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 4BcBNn3rHlz4G6t; Wed, 26 Aug 2020 16:37:45 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id DA78910646; Wed, 26 Aug 2020 17:37:37 +0100 (BST) Subject: Re: /bin/sh is what? Can I set tab autocompletion for that sh? To: Matthew Seaman , freebsd-questions@freebsd.org References: <20200822094009.40c8eeae.freebsd@edvax.de> From: Arthur Chance Message-ID: Date: Wed, 26 Aug 2020 17:37:37 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BcBNn3rHlz4G6t X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-1.31 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[qeng-ho.org]; NEURAL_HAM_LONG(-0.83)[-0.830]; NEURAL_HAM_MEDIUM(-0.88)[-0.877]; NEURAL_HAM_SHORT(-0.30)[-0.300]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 16:37:46 -0000 On 26/08/2020 17:09, Matthew Seaman wrote: > On 22/08/2020 08:40, Polytropon wrote: >> On Sat, 22 Aug 2020 09:28:27 +0200, Christoph Kukulies wrote: >>> I’m wondering whether I can set /bin/sh to autocomplete commands. >> >> The regular sh shell (which is the Almquist shell) does not >> have that feature. As it is primarily intended for scripting, >> and used interactively only in emergency cases (and even there >> often only to start csh or bash), command completition has >> probably never been considered for implementation. >> >> If you want this feature, just use csh, bash, zsh, ksh, fish, >> depending on your individual shell preference. >> >> See "man 1 sh" and "man 5 editrc" for details. > > Errr... > > `set -o emacs` or `set -E` > > will enable tab completion in /bin/sh, along with various other > comman-line editing features. Are you sure of that? If I drop into sh it's got emacs style editing for the command line but tab completion always gives me matching files in the current directory even in the command position. This is 11.3 (and I know I need to upgrade :-) -- The number of people predicting the demise of Moore's Law doubles every 18 months.