Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15644 > unrolled thread
| Started by | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| First post | 2019-11-26 05:13 +0700 |
| Last post | 2019-11-26 05:13 +0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: man bash does not list 'in' as a builtin command Robert Elz <kre@munnari.OZ.AU> - 2019-11-26 05:13 +0700
| From | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| Date | 2019-11-26 05:13 +0700 |
| Subject | Re: man bash does not list 'in' as a builtin command |
| Message-ID | <mailman.2637.1574720095.13325.bug-bash@gnu.org> |
Date: Mon, 25 Nov 2019 13:43:41 -0800
From: Peter Benjamin <pete@peterbenjamin.com>
Message-ID: <4dc457e0135603025cd500acdc95db53f9d30482.camel@peterbenjamin.com>
| Description:
| 'in' is a builtin command and is not listed in the man page as such.
Others have indicated what it is, but just for completeness, the man
page *does* include it...
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 [[ ]]
If you really have some burning desire to use "in" (or any of the others
listed there) as a command name (I doubt any will ever become any kind of
builtin, that would be bizarre) in bash or any other Bourne-type shell
(they *all* treat in as a reserved work) you can change the word (as your
./in did) or quote it somehow, like
'in' "in" \in i\n \i\n
kre
ps: you really should read the whole manual page, beginning to end.
Back to top | Article view | gnu.bash.bug
csiph-web