#1100393 bash: documnetation: bad description of sequences

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Francesco Potortì
Date:
2025-03-13 10:30:03 UTC
Severity:
normal
#1100393#5
Date:
2025-03-13 10:21:52 UTC
From:
To:
In the man page I read this:

       Brace  expansion is a mechanism by which arbitrary strings may be gener‐
       ated.  This mechanism is similar to pathname expansion,  but  the  file‐
       names  generated need not exist.  Patterns to be brace expanded take the
       form of an optional preamble, followed by either a series of comma-sepa‐
       rated strings or a sequence expression between a pair  of  braces,  fol‐
       lowed  by  an  optional  postscript.   The  preamble is prefixed to each
       string contained within the braces, and the postscript is then  appended
...
       A sequence expression takes the form {x..y[..incr]}, where x and  y  are

The textual description says that a pattern is:

[preamble]{(comma_separated_strings|sequence_expression)}[postscript]

In fact, it should be:

[preamble]({comma_separated_strings}|sequence_expression)[postscript]

To this end, this change is needed:

current text:
followed by either a series of comma-separated strings or a sequence expression between a pair of braces

corrected text:
followed by either a series of comma-separated strings between a pair of braces or a sequence expression