Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Eli Schwartz Newsgroups: gnu.bash.bug Subject: Re: man bash does not list 'in' as a builtin command Date: Mon, 25 Nov 2019 17:09:10 -0500 Lines: 83 Approved: bug-bash@gnu.org Message-ID: References: <4dc457e0135603025cd500acdc95db53f9d30482.camel@peterbenjamin.com> <20191125215307.GO851@eeg.ccf.org> <59706748-42d3-925b-9c86-3b34b0d1a451@archlinux.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JUxM2PBtzSYRvmR85ngdvJY32qD94xrAS" X-Trace: usenet.stanford.edu 1574719767 17611 209.51.188.17 (25 Nov 2019 22:09:27 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1574719754; bh=PNacNzNxs0J1It/CnXkVTGEX4NqPgl3lDsuuLQoQPbw=; h=Subject:To:References:From:Date:In-Reply-To; b=ZSJ+Ww4/UTvLMSHcDiKQEJzomSyc+UNhvLRG7v011KWr2E7c9bq5PpEl7/rnJ3v8X 3+9ZRzzT2K3cIB7+STlFOab3B2TDjLZprUxXOKKMKtkgdKo2d7nag2iO5c5VbrsCXt CJ3dD0bsbJmKXyo7zHD68euW1iKhm/sgs+T6zeR+MtXzzrvUetgc5UMu8grNo1KARa 8nBgG6faOP6Js9PVLLNrsc3FEw3BjialM2dpoIBPZyTU01dAysKae5dpG4aYOv0j1w PTdBKYCg7UlLn1+3CEZxVm2d16L3PfL7mKOV1GmgaaC/h+BIbHbpRw+ssFJhJT5Db2 W7zB59GOzwOMT5vFFNR6yvUvn/QjROUhDdp/gJHGXhmpXqt5hhCGcZ60wWJNxIZ+qJ afgFoh348M28yHdRRsuOFnHXUdqzyC6Uik4LUYfua4RrY75mvwEC1MXU05G3vMKQsB YsPi7MI2Ep2GYrQTk/lENsrqiINvqs16LyCcjoDVshnyDf6aMrEpHuknH7yjgDx2Va jSX1LvC7yaD0osrJRcwFqw5yr8D+oIYl3efUiRmtzAmrJjFer7MHA3E5maISQf3v5H yMUSxQkZGhCVP44T+15bN2Yt+BwMpMVe7Bu3M5FFEttxBtsVF1Ugckj+uNS0Abaic1 gghI9lhrvD7dd7AOfCIVzoHk= X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 In-Reply-To: <20191125215307.GO851@eeg.ccf.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f8:160:6087::1 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <59706748-42d3-925b-9c86-3b34b0d1a451@archlinux.org> X-Mailman-Original-References: <4dc457e0135603025cd500acdc95db53f9d30482.camel@peterbenjamin.com> <20191125215307.GO851@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:15643 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JUxM2PBtzSYRvmR85ngdvJY32qD94xrAS Content-Type: multipart/mixed; boundary="5b0y4Y9ossQrZy0ltqTtk7XwTqTJEG8Gc" --5b0y4Y9ossQrZy0ltqTtk7XwTqTJEG8Gc Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable On 11/25/19 4:53 PM, Greg Wooledge wrote: > On Mon, Nov 25, 2019 at 01:43:41PM -0800, Peter Benjamin wrote: >> Description: >> 'in' is a builtin command and is not listed in the man page as such. >=20 > It's actually a keyword. It's part of the "for" and "case" syntax. >=20 > wooledg:~$ type in > in is a shell keyword >=20 > for NAME in WORDS; do ...; done >=20 > case WORD in PATTERN) ... ;; esac And, it's even listed in the manpage, if you have patience to go through every mention of the pattern '\bin\b' and filter out the plain English ones... RESERVED WORDS Reserved words are words that have a special meaning to the shell. The following words are recognized as reserved when unquoted and either the first word of a simple command (see SHELL GRAMMAR below) or the third word of a case or for command: ! case coproc do done elif else esac fi for function if in select then until while { } time [[ ]] So the OP has their wish. It is documented in a section of the manpage they did not think to check. --=20 Eli Schwartz Arch Linux Bug Wrangler and Trusted User --5b0y4Y9ossQrZy0ltqTtk7XwTqTJEG8Gc-- --JUxM2PBtzSYRvmR85ngdvJY32qD94xrAS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl3cUQYACgkQhIGKaBmv Spsw4BAAlx7oJvRML4UWt4sySWvqTtrMacCmQIby59PKUk1qoKdcq6etitYRT1kJ 4DfvcTXj+Q6/OJc8X45SaIq3deVbv7OHz1yohD3wMfBP2inaRLLuBVSPEBsYuTD3 4IkQReZqfYg1CYOkAr7fjtuVYVvnjoD9R+f6wP3dtA4JZQRlVfVlOYztZWanD6Is R+mjg6I9PceMXq3yvZwKQr+a7eUKD2PHjP+9LqcKhVX30NOdKgYfXWQ3BizxmX17 mAeIMexOt728zjqXRy96+eyqSW26cLXfT8ATBvSTgrWTwi3QufEJS3UrinIo/bj6 mxBEPhc/ua9GgJZnq/3dUZ/AkZvrK33bJdhklCrwfzWZ/6FxtwmDwhvyZ69v1yqs ViVU+KDzj7FAzThcaoXWBOmhe692tkNpTbkWmRzpE+Sc/I96qm9ZXyBHQk1XNLGK 3E/YlAqjMugeKceHYYic6qTa4/Qdw7iFgbYEpiVA3ML2sSjWRs+I2MiAyUfpdg4D kNo4c4mKLzGVDKafELJ6n5ggnSZb43gDNxZumAjBsMWVZQCuzEjWtmId2VXio8hH 6ymusJpCiLaNFSYAqvNNKevrcSijqec/xTl3Z64pkT/Gn1YRt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