mainThe GNU Bourne-Again SHell - Support: sr #107734, Brace expansion should not be done...


sr #107734: Brace expansion should not be done in POSIX mode

Submitter:  Neil Mayhew <neil_mayhew>
Submitted:  Tue 05 Jul 2011 07:02:55 PM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Wont Do
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 25 Mar 2015 02:58:01 PM UTC, comment #2: 

Not a bug, close.

Eduardo Bustamante <dualbus>
Tue 22 Nov 2011 12:38:20 AM UTC, comment #1: 

Bash's posix mode doesn't mean that it does only what the Posix specification says.  It changes the default behavior where it differs from what Posix specifies to obey the standard.  Brace expansion is not mentioned in the standard, and Posix shell implementations are free to do whatever they like to words of the form {a,b,c,d}.

Chet Ramey <chet>
Group administrator
Tue 05 Jul 2011 07:02:55 PM UTC, original submission:  

Brace expansion isn't in the POSIX shell specification, but bash still does it in POSIX mode. Not only is this incorrect, it causes annoying incompatibilities with other shells that <em>are</em> POSIX-compliant, such as dash on Debian/Ubuntu. My system should behave the same regardless of whether /bin/sh is symlinked to bash or to dash, and a script with a shebang of #!/bin/sh should have fully POSIX-compliant behaviour in both cases.

Neil Mayhew <neil_mayhew>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by dualbus (Posted a comment)
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by neil_mayhew (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-12 chet StatusNone Wont Do

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code