From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1F693858C5F; Thu, 18 May 2023 14:24:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1F693858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684419860; bh=C8ytC7migdzVvACm0KXrDj2oa9ZzT6UXtewnBdscwHY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hyz2vxB2VL7fAjfVyItw12tgO4WAhgpTPq3gaLtqIYMZ3NUGPe+zPqygT9kldVLGR h8qvo6ADi9tHfb/Cx0VpwNcaRlLKgRdyQqpNg725XW2gViEAjgAJfmw0ghF3QTc82O /QC68iyV5HE4DwGb8vvCCUucocBZTJU5DJ/gQxCk= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/105831] Nonportable syntax in "test" and "[" commands. Date: Thu, 18 May 2023 14:24:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105831 --- Comment #8 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:6e2fbe4f345f48ae3c8ba5bfbc1a7b783b398614 commit r14-969-g6e2fbe4f345f48ae3c8ba5bfbc1a7b783b398614 Author: Jonathan Wakely Date: Thu May 18 10:18:19 2023 +0100 gcc: Fix nonportable shell syntax in "test" and "[" commands [PR105831] POSIX sh does not support the =3D=3D for string comparisons, use =3D in= stead. The gen_directive_tests script uses a bash shebang so =3D=3D does work,= but there's no reason this script can't just use the more portable form anyway. PR bootstrap/105831 gcc/ChangeLog: * config.gcc: Use =3D operator instead of =3D=3D. gcc/testsuite/ChangeLog: * gcc.test-framework/gen_directive_tests: Use =3D operator inst= ead of =3D=3D.=