Skip to content
Snippets Groups Projects

Don't use non-portable operator "==" in configure.ac

Closed PHO requested to merge PHO/ghc:configure-fix-portability into master

The test operator == is a Bash extension and produces a wrong result if /bin/sh is not Bash. This happens on NetBSD for example:

% /bin/sh
$ test 8 == 8
test: ==: unexpected operator
$ echo $?
2

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading