From unknown Wed Jun 25 05:38:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21052 <21052@debbugs.gnu.org> To: bug#21052 <21052@debbugs.gnu.org> Subject: Status: [PATCH] tests: fix $? typo in null-byte Reply-To: bug#21052 <21052@debbugs.gnu.org> Date: Wed, 25 Jun 2025 12:38:46 +0000 retitle 21052 [PATCH] tests: fix $? typo in null-byte reassign 21052 grep submitter 21052 Paul Eggert severity 21052 normal tag 21052 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 13 19:11:40 2015 Received: (at submit) by debbugs.gnu.org; 13 Jul 2015 23:11:40 +0000 Received: from localhost ([127.0.0.1]:48423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEmsu-0006hx-AL for submit@debbugs.gnu.org; Mon, 13 Jul 2015 19:11:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54014) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEmsr-0006hj-UN for submit@debbugs.gnu.org; Mon, 13 Jul 2015 19:11:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEmsl-0007wk-Pu for submit@debbugs.gnu.org; Mon, 13 Jul 2015 19:11:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEmsl-0007wg-Mo for submit@debbugs.gnu.org; Mon, 13 Jul 2015 19:11:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEmsk-0004pp-Nd for bug-grep@gnu.org; Mon, 13 Jul 2015 19:11:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEmsh-0007v3-HW for bug-grep@gnu.org; Mon, 13 Jul 2015 19:11:30 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEmsh-0007uh-Bn for bug-grep@gnu.org; Mon, 13 Jul 2015 19:11:27 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E5A3D1609A0 for ; Mon, 13 Jul 2015 16:11:25 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FvQkgRJRFgkn; Mon, 13 Jul 2015 16:11:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 46492160999; Mon, 13 Jul 2015 16:11:25 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G0DEy9RPUhi2; Mon, 13 Jul 2015 16:11:25 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 281BF160198; Mon, 13 Jul 2015 16:11:25 -0700 (PDT) From: Paul Eggert To: bug-grep@gnu.org Subject: [PATCH] tests: fix $? typo in null-byte Date: Mon, 13 Jul 2015 16:11:11 -0700 Message-Id: <1436829071-22402-1-git-send-email-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) * tests/null-byte: Don't assume $? survives an invocation of 'test'. --- tests/null-byte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/null-byte b/tests/null-byte index 27be99e..2419667 100755 --- a/tests/null-byte +++ b/tests/null-byte @@ -39,7 +39,9 @@ for left in '' a '#' '\0'; do printf "$pat\\n" >pat || framework_failure_ for locale in $locales; do LC_ALL=$locale grep -f pat in - test $? -eq 0 || test $? -eq 1 || fail_ "'$pat' caused an error" + status=$? + test $status -eq 0 || test $status -eq 1 || + fail_ "'$pat' caused an error" LC_ALL=$locale grep -a -f pat in | cmp -s - in || fail_ "-a '$pat' does not match '$data'" done -- 2.1.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 13 19:14:20 2015 Received: (at control) by debbugs.gnu.org; 13 Jul 2015 23:14:20 +0000 Received: from localhost ([127.0.0.1]:48428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEmvT-0006mK-Pe for submit@debbugs.gnu.org; Mon, 13 Jul 2015 19:14:20 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56366) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEmvS-0006m6-1C for control@debbugs.gnu.org; Mon, 13 Jul 2015 19:14:18 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 61A3C160198 for ; Mon, 13 Jul 2015 16:14:12 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vLNZPDxcCA4M for ; Mon, 13 Jul 2015 16:14:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BABBA160999 for ; Mon, 13 Jul 2015 16:14:11 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a0xkZP9X4z_e for ; Mon, 13 Jul 2015 16:14:11 -0700 (PDT) Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 985C1160198 for ; Mon, 13 Jul 2015 16:14:11 -0700 (PDT) Message-ID: <55A44643.2030002@cs.ucla.edu> Date: Mon, 13 Jul 2015 16:14:11 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: 21052 is fixed Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) close 21052 thanks From unknown Wed Jun 25 05:38:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Aug 2015 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator