Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15643
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Eli Schwartz <eschwartz@archlinux.org> |
| 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 | <mailman.2636.1574719766.13325.bug-bash@gnu.org> (permalink) |
| 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 <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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.
>
> It's actually a keyword. It's part of the "for" and "case" syntax.
>
> wooledg:~$ type in
> in is a shell keyword
>
> for NAME in WORDS; do ...; done
>
> 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.
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: man bash does not list 'in' as a builtin command Eli Schwartz <eschwartz@archlinux.org> - 2019-11-25 17:09 -0500
csiph-web