#9 `export foo=bar` failure is incorrect

open
nobody
None
5
2014-08-13
2014-08-13
Mike Frysinger
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