From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B2243856DF4; Thu, 18 May 2023 08:44:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B2243856DF4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684399463; bh=KqvEW3U/dCEN6qj+cGH3hSP6iZVOIVBFdriD+M0iAyA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TIVQvWev6nAIqBs9ARJltde1kBSwfoRuffwn/Mkevl0YKRyo8Gq4Y68btP4hg+tFi 9vJHiRT5iuaq8T9WtZIsIuOGebZnB+xcSC7/ThQKbQkujzbxId4t7T43mABwGdOvBs 667BDYPXwV/KXqPS3QLL4BNlkIbBL0Ka+H/fjcVk= From: "redi 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 08:44:22 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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 #4 from Jonathan Wakely --- The =3D=3D syntax also fails with dash, which is used as the default /bin/s= h on debian: $ /bin/sh -c "test foo =3D foo && echo y" y $ /bin/sh -c "test foo =3D=3D foo && echo y" /bin/sh: 1: test: foo: unexpected operator=