#9 `export foo=bar` failure is incorrect

open
nobody
None
5
2014-08-13
2014-08-13
No

Discussion

  • Mark Hobley

    Mark Hobley - 2014-08-13

    Allowed by POSIX, but not some Unix shells (Test with osh, ash386). Warn user of this construct.

     
  • Mike Frysinger

    Mike Frysinger - 2014-08-13

    the point of this script is to check for bashisms which is typically defined as "not in POSIX". what you describe is "portable shell" which is an ugly/undefined subset of POSIX that no one really knows and is often times different for every person. how far back exactly do you want to run your compliance ?

    imo, it has no business being in checkbashisms as it should only be testing for POSIX compliance. if a shell isn't POSIX compliant, it's garbage and should not be used.

     
    Last edit: Mike Frysinger 2014-08-13

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks