[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: man bash does not list 'in' as a builtin command

From: Robert Elz
Subject: Re: man bash does not list 'in' as a builtin command
Date: Tue, 26 Nov 2019 05:13:41 +0700

    Date:        Mon, 25 Nov 2019 13:43:41 -0800
    From:        Peter Benjamin <address@hidden>
    Message-ID:  <address@hidden>

  | 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 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


ps: you really should read the whole manual page, beginning to end.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]