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


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

Submitted by:  Neil Mayhew <neil_mayhew>
Submitted on:  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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project 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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    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.3