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 Jul 5 19:02:55 2011  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Wont Do
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed Mar 25 14:58:01 2015, comment #2:

Not a bug, close.

Eduardo Bustamante <dualbus>
Tue Nov 22 00:38:20 2011, 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 Jul 5 19:02:55 2011, 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to 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
    Thu Nov 12 20:31:51 2015chetStatusNone=>Wont Do

    Back to the top


    Powered by Savane 3.1-cleanup