Bug 1002078 - man page doesn't reflect change in extglob behaviour
Summary: man page doesn't reflect change in extglob behaviour
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 19
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Ondrej Oprala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1002071
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-28 12:54 UTC by Filip Krska
Modified: 2016-02-01 02:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1002071
Environment:
Last Closed: 2014-04-01 11:08:59 UTC
Type: Bug


Attachments (Terms of Use)

Description Filip Krska 2013-08-28 12:54:53 UTC
+++ This bug was initially created as a clone of Bug #1002071 +++

Description of problem:

Manual doesn't reflect the extglob behaviour change introduced in bash 4.1, described in CHANGES:

s.  Force extglob on temporarily when parsing the pattern argument to
    the == and != operators to the [[ command, for compatibility.

Version-Release number of selected component (if applicable):

bash-4.1.2-14.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1. man bash

Actual results:

       If the extglob shell option is enabled using the shopt builtin, several extended pattern matching operators are recognized.  In the following description, a pattern-list is a list of one or more patterns separated by a |.  Composite patterns may be formed using one or more of the following sub-patterns:

              ?(pattern-list)
                     Matches zero or one occurrence of the given patterns
              *(pattern-list)
                     Matches zero or more occurrences of the given patterns
              +(pattern-list)
                     Matches one or more occurrences of the given patterns
              @(pattern-list)
                     Matches one of the given patterns
              !(pattern-list)
                     Matches anything except one of the given patterns


Expected results:

 Several extended pattern matching operators are recognized.  In the following description, a pattern-list is a list of one or more patterns separated by a |.  Composite patterns may be formed using one or more of the  following  sub-patterns:

              ?(pattern-list)
                     Matches zero or one occurrence of the given patterns
              *(pattern-list)
                     Matches zero or more occurrences of the given patterns
              +(pattern-list)
                     Matches one or more occurrences of the given patterns
              @(pattern-list)
                     Matches one of the given patterns

       If the extglob shell option is enabled using the shopt builtin, following pattern matching operator is recognized as well:

              !(pattern-list)
                     Matches anything except one of the given patterns


Additional info:

--- Additional comment from Filip Krska on 2013-08-28 08:51:30 EDT ---

https://bugzilla.redhat.com/attachment.cgi?id=791383

Comment 1 Fedora Admin XMLRPC Client 2013-10-07 11:48:07 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Ondrej Oprala 2014-04-01 11:08:59 UTC
Hi and thanks for the report.

Yes, that man-page snippet you posted describes the extglob syntax only, as it should.

And since bash-4.2 (which is now in f19 and f20), the implicit extglob with == and != in [[ is also described where it should be - under [[ expression ]].

As for the attachment - effects of shopt extglob should now also be described in numerous places across the manpage.


Note You need to log in before you can comment on or make changes to this bug.