Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16639
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| 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 | Tue, 28 Jul 2020 22:21:36 +0800 |
| Lines | 38 |
| Approved | bug-bash@gnu.org |
| 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> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1595946580 19507 209.51.188.17 (28 Jul 2020 14:29:40 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org |
| To | chet.ramey@case.edu |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3tpeYXQlsU8epM3JGYON63erilMqBRWU5ujkhAOA5x0=; b=bxE/1LtgRXpi6wdxwx8+f3PkiuyDVBgRBBS1Rw0ZJdNUGGj7819boA3ReUXyp7TgvN mI/Fz3iER2fZS1X+dtvr968r6aRhDxET8v1c4lVsszkkHNTW3BaGwlQM0UqFKtXAcjky aHuze+9MNZLks6HS2qs6tWPIOgO5qRmTnAOFqA6HpGRPGPWFvCd3A4Mkz+O266HeD4Oc OEC7T/6UDbgp7NP3H95KpvWmqHl0Sb4aziErQ8VFtwSTqFM5sJyAn54BhUTx/j2bu6Lo VPd5Dy3rSKFRRyuMRMGVTOHbDk59ReP1JxpFnBOLnpen9fg5fg+5Z1B3Jq/IT7cGeblw BW6A== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3tpeYXQlsU8epM3JGYON63erilMqBRWU5ujkhAOA5x0=; b=LF+X4zwfZWKqFEau7eE0lfrLsD9JdZXrKbT2eaaKlw3YKFqRKT7SYnS80YvhqKnYyv nWIgzhYOhlb8ce4rbAAx8Kz355yyXw+fcsF5yni9XMzYLb+sati8wN23zn9GhX+xeZH4 YNdLzXMP1e0UvNeUbRC2/6L/ctIiLEDmgEOcRQXDNBxQ3y0FWpDYJfkGKho7Mbe3SkSq MPYgGt/dab3JijG0n2UnZiY5oKnLGF9EDq7kp59FknXZTPknadshJooyWmG/JNapE4AX S3nwegLEZighw67BpLFsCzrTo909+9YPzYJ4s5I6r+2XQSrCMtjCcgZtqS4Fa0iyLRRl aUfA== |
| X-Gm-Message-State | AOAM532W0Ycbl6y/Y4/+RimWpRB+NEskffXUBRBJe5NBXvzKBDalV6x+ 2TvRzhMJyl1/iYmUahphh4ymgoYm7eRzROxtzVfqgb6h8SK5Ow== |
| X-Google-Smtp-Source | ABdhPJx2LUJu8mkmDEFeOAalI6ee3tPpZt6a5phvn2WmgUZecjIgnGAvsEH+Yyoy+uTUw94IfWtPVk6ZiRjPKt28+LY= |
| X-Received | by 2002:a67:f7cc:: with SMTP id a12mr20314866vsp.151.1595946107688; Tue, 28 Jul 2020 07:21:47 -0700 (PDT) |
| In-Reply-To | <43223707-2235-2349-3b37-f18ab4e780e3@case.edu> |
| Received-SPF | pass client-ip=2607:f8b0:4864:20::533; envelope-from=hongyi.zhao@gmail.com; helo=mail-pg1-x533.google.com |
| X-detected-operating-system | by eggs.gnu.org: No matching host in p0f cache. That's all we know. |
| X-Spam_score_int | -20 |
| X-Spam_score | -2.1 |
| X-Spam_bar | -- |
| X-Spam_report | (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no |
| X-Spam_action | no action |
| 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 | <CAGP6PO++vQdP5XaoMd-stx52fBLauJt+eVLqJ4=XhAmx1fxFEw@mail.gmail.com> |
| X-Mailman-Original-References | <CAGP6POJRc+J=3-9psywybQa+A_NJ0EqrBEdpbiTHkXtXCoWNVA@mail.gmail.com> <43223707-2235-2349-3b37-f18ab4e780e3@case.edu> |
| Xref | csiph.com gnu.bash.bug:16639 |
Show key headers only | 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
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