nonportable operators for "test"

Issue #36 resolved
RonRahaman created an issue

The MOAB configure script contains several usages of

test "$foo" == "bar"

rather than the portable

test "$foo" = "bar"

I know that bash supports the "==" operator, but a number of prominent shells do not. For example, on Ubuntu LTS 14.04, /bin/sh points to dash instead of bash. I'm not personally blocked by this, but it will block many users who don't know the difference.

I started having this issue with MOAB 4.9.1 (it's not an option in the "Version" pulldown menu for this post).

Comments (4)

  1. Log in to comment