Your message dated Sun, 28 Apr 2024 22:36:59 +0200
with message-id <b47cc1d1-0214-4479-bde4-c560a20e6...@svario.it>
and subject line Re: Bug#742006: [bash] Incomplete grammar in manual page 
(compound commands)
has caused the Debian Bug report #742006,
regarding [bash] Incomplete grammar in manual page (compound commands)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
742006: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742006
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: bash
Version: 4.3-2
Severity: normal
Tags: upstream
X-Debbugs-Cc: bug-b...@gnu.org

According to the section Compound Commands of the manual page, a compound 
command is one of 11 forms listed. However, as explained in the ALIASES 
section, a function definition ( function name [()] compound-command 
[redirection] ) is also a compound command.

Multiple other forms of compound commands are not documented, for example { if 
true; then echo x; fi }.

--
Filipus Klutiero
http://www.philippecloutier.com

--- End Message ---
--- Begin Message ---
Version: 4.4-1

On Wed, 19 Mar 2014 01:29:31 -0400 Filipus Klutiero <chea...@gmail.com> wrote:
On 2014-03-18 08:58, Chet Ramey wrote:
> On 3/18/14 2:23 AM, Filipus Klutiero wrote:
>> According to the section Compound Commands of the manual page, a compound
>> command is one of 11 forms listed. However, as explained in the ALIASES
>> section, a function definition ( function name [()] compound-command
>> [redirection] ) is also a compound command.
> A function definition is a function definition command.  The sentence
> in the ALIASES section should read "a function definition is itself a
> command."

Ah, indeed. In this case, this report is invalid. Feel free to close it (I'll 
open a new ticket if the source issue persists).
>
>> Multiple other forms of compound commands are not documented, for example {
>> if true; then echo x; fi }.
> I'm not sure what this means.  Group commands are compound commands, and
> are documented as such.
>
> If you want to take a look at the Posix grammar and list of compound
> commands, go to
> 
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04

Thank you

>
> What's the point of this report?  Is there some problem this is attempting
> to address?

Sorry for the last paragraph, I didn't realize that "if true; then echo x; fi" 
was a list. Thanks, the definition of compound commands is OK then. I probably developed 
my misunderstanding of what a list is due to the order of sections and the fact that the 
manpage does not define what a command is. To be fair, even the author of the info 
documentation got that wrong:

> A `pipeline' is a sequence of simple commands separated by one of the
>  control operators `|' or `|&'.

The info documentation has been fixed and now it reads:

A 'pipeline' is a sequence of one or more commands separated by one
of the control operators '|' or '|&'.
Regards,

--
Gioele Barabucci

--- End Message ---

Reply via email to