diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-05-18 10:18:19 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-18 14:01:40 +0100 |
commit | 120e444974e12eb727eea170a3bfd80783e3851f (patch) | |
tree | dfd1458789d1195b174fa997e2616b903c7d6e25 /contrib/reghunt | |
parent | 6e2fbe4f345f48ae3c8ba5bfbc1a7b783b398614 (diff) | |
download | gcc-120e444974e12eb727eea170a3bfd80783e3851f.zip gcc-120e444974e12eb727eea170a3bfd80783e3851f.tar.gz gcc-120e444974e12eb727eea170a3bfd80783e3851f.tar.bz2 |
contrib: Fix nonportable shell syntax in "test" and "[" commands [PR105831]
POSIX sh does not support the == for string comparisons, use = instead.
These contrib scripts all use a bash shebang so == does work, but
there's no reason they can't just use the more portable form anyway.
PR bootstrap/105831
contrib/ChangeLog:
* bench-stringop: Use = operator instead of ==.
* repro_fail: Likewise.
contrib/reghunt/ChangeLog:
* bin/reg-hunt: Use = operator instead of ==.
Diffstat (limited to 'contrib/reghunt')
-rwxr-xr-x | contrib/reghunt/bin/reg-hunt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/reghunt/bin/reg-hunt b/contrib/reghunt/bin/reg-hunt index 6427535..aff4e90 100755 --- a/contrib/reghunt/bin/reg-hunt +++ b/contrib/reghunt/bin/reg-hunt @@ -142,7 +142,7 @@ process_patch () { # build failures, quit now. if [ ${SKIP} -eq 0 ]; then - if [ "x${REG_NEWMID}" == "x" \ + if [ "x${REG_NEWMID}" = "x" \ -o ${TEST_ID} -eq ${LATER_THAN} \ -o ${TEST_ID} -eq ${EARLIER_THAN} ]; then error "build failed for ${TEST_ID}" |