HEAD `configure` uses bash syntax not portable to /bin/sh
Summary
The syntax: cmd >& somefile
is bash-specific, in POSIX shells one generally needs to write cmd > somefile 2>&1
.
The non-portable form is seen in m4/xcode_version.m4
as of commit 7ffbdc3f and m4/fp_cc_supports_target.m4
as of commit 6544446d
m4/fp_cc_supports_target.m4: if $CC --target=$LlvmTarget -Werror conftest.c >& /dev/null ; then
m4/xcode_version.m4: XcodeVersion=`(xcode-select -p >& /dev/null && xcodebuild -version) | grep Xcode | sed "s/Xcode //"`
Steps to reproduce
Configure (both build and bindist) fails on FreeBSD unless invoked explicitly via bash
Expected behavior
Configure works with /bin/sh
Environment
- GHC version used: HEAD commit: 14e9cab6
Optional:
- Operating System: FreeBSD
- System Architecture: x86_64