Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 19:12:37 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Arthur Chance <freebsd@qeng-ho.org>, freebsd-questions@freebsd.org
Subject:   Re: /bin/sh is what? Can I set tab autocompletion for that sh?
Message-ID:  <2a22febd-8c05-5831-b2ae-0d0c801c578e@FreeBSD.org>
In-Reply-To: <f145b778-91f6-9d98-753e-58df5f03f927@qeng-ho.org>
References:  <FB0A5943-D0C9-4EFC-B645-4522964F36B9@kukulies.org> <20200822094009.40c8eeae.freebsd@edvax.de> <b7a508a0-9bc5-886a-dfc7-985909017f94@FreeBSD.org> <f145b778-91f6-9d98-753e-58df5f03f927@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--pMUfwDDtZunMD3L9SGFHYCAgOMiiJkqsB
Content-Type: multipart/mixed; boundary="qV1F71ZMWYKRui2Ywv1pM2vLtqlKHJUG3"

--qV1F71ZMWYKRui2Ywv1pM2vLtqlKHJUG3
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 26/08/2020 17:37, Arthur Chance wrote:
> 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=E2=80=99m wondering whether I can set /bin/sh to autocomplete comm=
ands.
>>>
>>> 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.
>=20
>=20
> Are you sure of that? If I drop into sh it's got emacs style editing fo=
r
> 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 :-)
>=20

Yes.  It is just tab completion of filenames -- nothing more
sophisticated than that I'm afraid.  /bin/sh hasn't changed
significantly since 11.3 release, so while upgrading might be a good
idea, this isn't the most compelling reason to do so.

	Cheers,

	Matthew


--qV1F71ZMWYKRui2Ywv1pM2vLtqlKHJUG3--

--pMUfwDDtZunMD3L9SGFHYCAgOMiiJkqsB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl9GphVfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OeI+A//fMHWs7ssQcYmIkQmwdrzCkuaPWQL+El7GE1pPRdnI7CiZoPNPyghWI9X
oNhZusDoLtIDnNjDYMCnXnRxx3/Yb43r5ukldHzfBraBCL2+/miCRQRKtAG55Qak
zqu3mb0tl4iRkAELO1MMtv6dVwujL0D2TRWVibD5sDZeET/Md7i2BeOYup2vkxbu
H/Wpt6FcJYcETjFmj9lZ5e8u0LbHVp1g+ThTj+Ids2DOTWmyzLz3qC7KZ5YJx/kf
78cv6gE7lz4q3SBPip64VI2rkX5DSM3NI0HnlFndJZqOWwcnFImUQMCsVBBfikrb
rPAWVMzdHwnGIOqWRv+7OohCVrL1MeMVuotDeiZOgVP7OXPOfUGEdsjMPDfFUu35
rGCZVdnojG8fv7cmnkGTG0PHUAK+b4tEDzEgOjwxFGmTPfQ8Z6zDVhNcDrnkYPst
wKBkLbFpenG64gHCKNG8EcGDHHVbxuMQYticmKWkXxATALxV6UErT2cZ0tHQuDOF
HkPmJT6KekjVVY6n1SM68C6IWZ+ES0/1osv5yo2dEFNom5fpIIJBz3pi0PUZmF5q
uYy6hCplWl1N9VKb/mhnsTWf8FqMX3jyduPkLWY77NnCQeZiGBzgFrfrKd9VImFp
fiFP/0SE0tWMy2OTmM6ZB0j1n9j0mM7XRp0xXfXCj54YlXwhfEU=
=7skN
-----END PGP SIGNATURE-----

--pMUfwDDtZunMD3L9SGFHYCAgOMiiJkqsB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a22febd-8c05-5831-b2ae-0d0c801c578e>