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: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
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.

 

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

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup