aboutsummaryrefslogtreecommitdiff
path: root/contrib/repro_fail
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-05-18 10:18:19 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-05-18 14:01:40 +0100
commit120e444974e12eb727eea170a3bfd80783e3851f (patch)
treedfd1458789d1195b174fa997e2616b903c7d6e25 /contrib/repro_fail
parent6e2fbe4f345f48ae3c8ba5bfbc1a7b783b398614 (diff)
downloadgcc-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/repro_fail')
-rwxr-xr-xcontrib/repro_fail4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/repro_fail b/contrib/repro_fail
index 9ea79f2..abb479d 100755
--- a/contrib/repro_fail
+++ b/contrib/repro_fail
@@ -42,10 +42,10 @@ if [ $# -lt 2 ] ; then
exit 1
fi
-if [ "$1" == "--debug" ] ; then
+if [ "$1" = "--debug" ] ; then
debug_args="-wrapper gdb,--args"
shift
-elif [ "$1" == "--debug-tui" ] ; then
+elif [ "$1" = "--debug-tui" ] ; then
debug_args="-wrapper gdb,--tui,--args"
shift
else