Menu

#5 bad POSIX shell test usage

open
nobody
None
2016-04-20
2016-04-19
No

the configure.ac file does things like:

[if test x$enableval == xyes && test "$GCC" = "yes";

the == opterator is not in POSIX. it has to be = to avoid errors with many shells. usually only bash recognizes ==.

Discussion

  • Robi

    Robi - 2016-04-20

    Thanks for the note.

    At first sight, I can not recognize "==" in the config.ac.
    But, I will examine this accurate the next days.
    And I'll also try this with other shells.
    Using a different shell than bash? Such an idea I had never before during my previous testings. Lets see what happens :-)

    Robi

     
  • Robi

    Robi - 2016-04-20

    Okay, it's not in the latest release 0.3.2, but in GIT.
    I'll check what I later accepted here for a patch. Looks like adopted and accepted from a maintainer.

    thank you

    Robi

     

Log in to post a comment.