Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16639

Re: `help declare' don't show the same document with the online one.

From Hongyi Zhao <hongyi.zhao@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: `help declare' don't show the same document with the online one.
Date 2020-07-28 22:21 +0800
Message-ID <mailman.206.1595946579.2739.bug-bash@gnu.org> (permalink)
References <CAGP6POJRc+J=3-9psywybQa+A_NJ0EqrBEdpbiTHkXtXCoWNVA@mail.gmail.com> <43223707-2235-2349-3b37-f18ab4e780e3@case.edu> <CAGP6PO++vQdP5XaoMd-stx52fBLauJt+eVLqJ4=XhAmx1fxFEw@mail.gmail.com>

Show all headers | View raw


On Tue, Jul 28, 2020 at 9:25 PM Chet Ramey <chet.ramey@case.edu> wrote:
>
>
> > The online version of the document for declare told the following usage:
> >
> >
> > declare
> > declare [-aAfFgilnrtux] [-p] [name[=value] …]
> > [...]
> > The -p option will display the attributes and values of each name.
> > When -p is used with name arguments, additional options, other than -f
> > and -F, are ignored.
> >
> >
> > But I can't find the same notes from the local version of the document
> > for this command given by `help declare', any hints for this problem?
>
> The help text built into bash is a much shorter version of the manual
> text. It's intended to be a hint, with the man page providing the detail.

Thanks a lot for your help. I rechecked the man page with the
following command and confirmed the comments you told above:

$ man bash | egrep -A10 '^[ ]*declare \['
       declare [-aAfFgilnrtux] [-p] [name[=value] ...]
       typeset [-aAfFgilnrtux] [-p] [name[=value] ...]
              Declare  variables  and/or give them attributes.  If no
names are given then display the
              values of variables.  The -p option will display the
attributes and values of each name.
              When  -p  is used with name arguments, additional
options, other than -f and -F, are ig‐
              nored.

-- 
Hongyi Zhao <hongyi.zhao@gmail.com>

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: `help declare' don't show the same document with the online one. Hongyi Zhao <hongyi.zhao@gmail.com> - 2020-07-28 22:21 +0800

csiph-web