From unknown Wed Jun 18 00:28:05 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#39368 <39368@debbugs.gnu.org> To: bug#39368 <39368@debbugs.gnu.org> Subject: Status: Possible visualization bug in GNU grep 3.1 (Ubuntu 18.04 x86_64) Reply-To: bug#39368 <39368@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:28:05 +0000 retitle 39368 Possible visualization bug in GNU grep 3.1 (Ubuntu 18.04 x86_= 64) reassign 39368 grep submitter 39368 Andrea Ranieri severity 39368 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 07:46:29 2020 Received: (at submit) by debbugs.gnu.org; 31 Jan 2020 12:46:29 +0000 Received: from localhost ([127.0.0.1]:36661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixVgn-00083B-K9 for submit@debbugs.gnu.org; Fri, 31 Jan 2020 07:46:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:53533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixThA-0002zM-12 for submit@debbugs.gnu.org; Fri, 31 Jan 2020 05:38:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55567) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixTh7-0002Kr-RG for bug-grep@gnu.org; Fri, 31 Jan 2020 05:38:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_DNSWL_MED,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixTh1-0003TR-Ix for bug-grep@gnu.org; Fri, 31 Jan 2020 05:38:34 -0500 Received: from smtpfe.cnr.it ([150.146.205.156]:32634 helo=smtp.cnr.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ixTh1-0003GX-6W for bug-grep@gnu.org; Fri, 31 Jan 2020 05:38:31 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp.cnr.it (Postfix) with ESMTP id D9FBE122DB for ; Fri, 31 Jan 2020 10:38:27 +0000 (UTC) Received: from smtp.cnr.it ([127.0.0.1]) by localhost (smtp.cnr.it [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 26259-02 for ; Fri, 31 Jan 2020 11:38:27 +0100 (CET) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.cnr.it (Postfix) with ESMTPSA id 6788F122D4 for ; Fri, 31 Jan 2020 11:38:27 +0100 (CET) Received: by mail-ua1-f49.google.com with SMTP id c7so2366106uaf.5 for ; Fri, 31 Jan 2020 02:38:27 -0800 (PST) X-Gm-Message-State: APjAAAWC0l9nvOy0wm20ZvDyij3wFD8oHAzp7AAQEqlXfZWl1xvfSkbB 3bfqsnl3r8IXzHtTt8Ojm1ry97yUEC41hDJD7bs= X-Google-Smtp-Source: APXvYqw0RH3PFJPS6QnqnUek0pdmAwmQMMjqtRYIrkSrZjvz19u0pfQtI8YDe/H8SuiKquZGqItIXVTmPA8q2b5VP8I= X-Received: by 2002:ab0:94:: with SMTP id 20mr5553059uaj.71.1580467106348; Fri, 31 Jan 2020 02:38:26 -0800 (PST) MIME-Version: 1.0 From: Andrea Ranieri Date: Fri, 31 Jan 2020 11:38:15 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Possible visualization bug in GNU grep 3.1 (Ubuntu 18.04 x86_64) To: bug-grep@gnu.org Content-Type: multipart/mixed; boundary="000000000000741dc1059d6d2cb9" X-Virus-Scanned: Maia Mailguard 1.0.2b X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 150.146.205.156 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 31 Jan 2020 07:46:20 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.8 (/) --000000000000741dc1059d6d2cb9 Content-Type: multipart/alternative; boundary="000000000000741dc0059d6d2cb7" --000000000000741dc0059d6d2cb7 Content-Type: text/plain; charset="UTF-8" Dear grep maintainers, I think I've found a file that makes grep display wrong things, namely endlines when grep is run "alone", piping just two greps together vs. text when the output is piped e.g. to more or hd (hexdump). You can find this file attached, but the file is public and can be found in this zipfile: https://www-intuidoc.irisa.fr/files/2017/07/ComplementaryInfo_LMDHG.zip (part of the Leap Motion Dynamic Hand Gesture (LMDHG) database: https://www-intuidoc.irisa.fr/en/english-leap-motion-dynamic-hand-gesture-lmdhg-database/ ). The offending command is this one: #> grep -v "Position\|hand type\|^\t\t$" ArticulationsOrder.txt | grep '[^A-Z]' # outputs just endlines While: #> grep -v "Position\|hand type\|^\t\t$" ArticulationsOrder.txt | grep '[^A-Z]' | more # outputs this lines METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" METACARPAL ="(63.1641, 111.558, 103.153)" PROXIMAL ="(63.1641, 111.558, 103.153)" INTERMEDIATE ="(32.0933, 130.062, 69.1525)" DISTAL" ="(21.6896, 137.526, 37.7594)" I can reproduce this also on my Raspberry Pi 4 (with Ubuntu 18.04 and grep v3.1 as well) and another x86_64 node with Xeon Silver belonging to a research cluster (grep v2.20). If you have any questions, do not hesitate to contact me. Thanks for all the work you do. Best regards Andrea Ranieri #> grep --version grep (GNU grep) 3.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and others, see < http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>. #> uname -a Linux zapp-brannigan 5.3.0-24-generic #26~18.04.2-Ubuntu SMP Tue Nov 26 12:34:22 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux #> alias | grep grep alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' -- Andrea Ranieri, Ph.D. Researcher *National Research Council of Italy* Via De Marini 6, 16149 Genova, Italy Email: andrea.ranieri@cnr.it --000000000000741dc0059d6d2cb7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear grep maintainers,

I think I&#= 39;ve found a file that makes grep display wrong things, namely endlines wh= en grep is run "alone", piping just two greps together vs. text w= hen the output is piped e.g. to more or hd (hexdump).

= You can find this file attached, but the file is public and can be found in= this zipfile: https://www-intuidoc.irisa.fr/fil= es/2017/07/ComplementaryInfo_LMDHG.zip (part of the Leap Motion Dynamic= Hand Gesture (LMDHG) database: https://www-intuidoc.irisa.fr/en/english-leap-motion-dynamic-hand-gesture= -lmdhg-database/).

The offending command is this o= ne:

#> grep -v "Position\|hand type\|^\t\t$&qu= ot; ArticulationsOrder.txt | grep '[^A-Z]' # outputs just endlines<= br>

While:

#> grep -v "Po= sition\|hand type\|^\t\t$" ArticulationsOrder.txt | grep '[^A-Z]&#= 39; | more # outputs this lines
METACARPAL =C2=A0 =3D"(63.16= 41, 111.558, 103.153)"
PROXIMAL =C2=A0 =C2=A0 =3D"(63.1641, = 111.558, 103.153)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE =3D&quo= t;(32.0933, 130.062, 69.1525)"
DISTAL" =C2=A0 =C2=A0 =C2=A0= =3D"(21.6896, 137.526, 37.7594)"
METACARPAL =C2=A0 =3D"= (63.1641, 111.558, 103.153)"
PROXIMAL =C2=A0 =C2=A0 =3D"(63.= 1641, 111.558, 103.153)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE = =3D"(32.0933, 130.062, 69.1525)"
DISTAL" =C2=A0 =C2=A0 = =C2=A0=3D"(21.6896, 137.526, 37.7594)"
METACARPAL =C2=A0 =3D= "(63.1641, 111.558, 103.153)"
PROXIMAL =C2=A0 =C2=A0 =3D&quo= t;(63.1641, 111.558, 103.153)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMED= IATE =3D"(32.0933, 130.062, 69.1525)"
DISTAL" =C2=A0 = =C2=A0 =C2=A0=3D"(21.6896, 137.526, 37.7594)"
METACARPAL =C2= =A0 =3D"(63.1641, 111.558, 103.153)"
PROXIMAL =C2=A0 =C2=A0 = =3D"(63.1641, 111.558, 103.153)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 I= NTERMEDIATE =3D"(32.0933, 130.062, 69.1525)"
DISTAL" = =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 137.526, 37.7594)"
METACAR= PAL =C2=A0 =3D"(63.1641, 111.558, 103.153)"
PROXIMAL =C2=A0 = =C2=A0 =3D"(63.1641, 111.558, 103.153)"
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 INTERMEDIATE =3D"(32.0933, 130.062, 69.1525)"
DISTAL&= quot; =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 137.526, 37.7594)"
<= br> METACARPAL =C2=A0 =3D"(63.1641, 111.558, 103.153)"
PROX= IMAL =C2=A0 =C2=A0 =3D"(63.1641, 111.558, 103.153)"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 INTERMEDIATE =3D"(32.0933, 130.062, 69.1525)" DISTAL" =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 137.526, 37.7594)&q= uot;
METACARPAL =C2=A0 =3D"(63.1641, 111.558, 103.153)"
= PROXIMAL =C2=A0 =C2=A0 =3D"(63.1641, 111.558, 103.153)"
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE =3D"(32.0933, 130.062, 69.1525)&= quot;
DISTAL" =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 137.526, 37.= 7594)"
METACARPAL =C2=A0 =3D"(63.1641, 111.558, 103.153)&quo= t;
PROXIMAL =C2=A0 =C2=A0 =3D"(63.1641, 111.558, 103.153)"=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE =3D"(32.0933, 130.062, 69.1= 525)"
DISTAL" =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 137.526= , 37.7594)"
METACARPAL =C2=A0 =3D"(63.1641, 111.558, 103.153= )"
PROXIMAL =C2=A0 =C2=A0 =3D"(63.1641, 111.558, 103.153)&qu= ot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE =3D"(32.0933, 130.062,= 69.1525)"
DISTAL" =C2=A0 =C2=A0 =C2=A0=3D"(21.6896, 13= 7.526, 37.7594)"
METACARPAL =C2=A0 =3D"(63.1641, 111.558, 10= 3.153)"
PROXIMAL =C2=A0 =C2=A0 =3D"(63.1641, 111.558, 103.15= 3)"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 INTERMEDIATE =3D"(32.0933, 130= .062, 69.1525)"
DISTAL" =C2=A0 =C2=A0 =C2=A0=3D"(21.689= 6, 137.526, 37.7594)"

I can reproduce this al= so on my Raspberry Pi 4 (with Ubuntu 18.04 and grep v3.1 as well) and anoth= er x86_64 node with Xeon Silver belonging to a research cluster (grep v2.20= ).

If you have any questions, do not hesitate to conta= ct me. Thanks for all the work you do.

Best regards
Andrea Ranieri

#> grep --versi= on
grep (GNU grep) 3.1
Copyright (C) 2017 Free Software Foundation, I= nc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html<= /a>>.
This is free software: you are free to change and redistribute = it.
There is NO WARRANTY, to the extent permitted by law.

#> uname -aLinux zapp-brannigan 5.3.0-24-generic #26~18.04.2-Ubuntu SMP Tue Nov 26 12= :34:22 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

#&g= t; alias | grep grep
alias egrep=3D'egrep --color=3Dauto'
ali= as fgrep=3D'fgrep --color=3Dauto'
alias grep=3D'grep --color= =3Dauto'


--
Andrea Ranieri, = Ph.D.

Researcher
National Research Council of Italy
= Via De Marini 6, 16149 Genova, Italy
Email:=C2=A0andrea.ranieri@cnr.it
--000000000000741dc0059d6d2cb7-- --000000000000741dc1059d6d2cb9 Content-Type: text/plain; charset="US-ASCII"; name="ArticulationsOrder.txt" Content-Disposition: attachment; filename="ArticulationsOrder.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k60xq82i0 aGFuZCB0eXBlPSJMRUZUIiANCiAgICBwYWxtUG9zaXRpb24gID0iKDc3LjY1MTIsIDEzNS4zNDUs IDQ4Ljc3MDcpIg0KICAgIHdyaXN0UG9zaXRpb24gPSIoOTEuNzkzOSwgMTIxLjM5OSwgOTkuNDEz OSkiDQoJZWxib3dQb3NpdGlvbiA9IigxOTIuMzI4LCA0Ni45NDg3LCAzMzYuOTcpIiANCiAgICB0 aHVtYlBvc2l0aW9uDQoJCU1FVEFDQVJQQUwgICA9Iig2My4xNjQxLCAxMTEuNTU4LCAxMDMuMTUz KSINCgkJUFJPWElNQUwgICAgID0iKDYzLjE2NDEsIDExMS41NTgsIDEwMy4xNTMpIg0KICAgICAg ICBJTlRFUk1FRElBVEUgPSIoMzIuMDkzMywgMTMwLjA2MiwgNjkuMTUyNSkiDQoJCURJU1RBTCIg ICAgICA9IigyMS42ODk2LCAxMzcuNTI2LCAzNy43NTk0KSINCglpbmRleFBvc2l0aW9uDQoJCU1F VEFDQVJQQUwgICA9Iig2My4xNjQxLCAxMTEuNTU4LCAxMDMuMTUzKSINCgkJUFJPWElNQUwgICAg ID0iKDYzLjE2NDEsIDExMS41NTgsIDEwMy4xNTMpIg0KICAgICAgICBJTlRFUk1FRElBVEUgPSIo MzIuMDkzMywgMTMwLjA2MiwgNjkuMTUyNSkiDQoJCURJU1RBTCIgICAgICA9IigyMS42ODk2LCAx MzcuNTI2LCAzNy43NTk0KSINCgltaWRkbGVQb3NpdGlvbg0KCQlNRVRBQ0FSUEFMICAgPSIoNjMu MTY0MSwgMTExLjU1OCwgMTAzLjE1MykiDQoJCVBST1hJTUFMICAgICA9Iig2My4x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ICAgID0iKDYzLjE2NDEsIDExMS41NTgsIDEwMy4x NTMpIg0KICAgICAgICBJTlRFUk1FRElBVEUgPSIoMzIuMDkzMywgMTMwLjA2MiwgNjkuMTUyNSki DQoJCURJU1RBTCIgICAgICA9IigyMS42ODk2LCAxMzcuNTI2LCAzNy43NTk0KSINCg== --000000000000741dc1059d6d2cb9-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 08:57:04 2020 Received: (at submit) by debbugs.gnu.org; 31 Jan 2020 13:57:04 +0000 Received: from localhost ([127.0.0.1]:36697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWnA-0001GV-AG for submit@debbugs.gnu.org; Fri, 31 Jan 2020 08:57:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:48513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWn8-0001GF-G0 for submit@debbugs.gnu.org; Fri, 31 Jan 2020 08:57:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38793) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixWn6-000795-7P for bug-grep@gnu.org; Fri, 31 Jan 2020 08:57:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixWn5-0005E8-4Y for bug-grep@gnu.org; Fri, 31 Jan 2020 08:57:00 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:36309) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixWn4-000573-T3 for bug-grep@gnu.org; Fri, 31 Jan 2020 08:56:59 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 600CD80E for ; Fri, 31 Jan 2020 08:56:56 -0500 (EST) Received: from imap21 ([10.202.2.71]) by compute1.internal (MEProxy); Fri, 31 Jan 2020 08:56:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=iqBAdD MtqZCC+V55JfFm8Irw9FLDasg5H4G08exyBWM=; b=YSO5jh2VQ5H7oiZcBGw1kQ q5VjDXBYajLOMMbcWNFdpDtEijnUb4jImnY7e4qZcFDhMKL3Z5Ksgt8dO+G1NOff XpVno2tvYvISqMM07J45LSvh/GyQqARo/oBhefo9YI+R0/AE5nAQroLEii0+DVv7 IzJxtxHBqtdu+MBTLSWaap53ADHi3e9wTA+pHEJaa1jdYKe1q6YKo73PYxLQx3zN gd6g0hbQT0qMwdO1ooGyvrPM5SzF6YjHNrG0gXAgS1LO8/poAWnzSEWwO34VsLQV AyXOaFWWIeK2t8XjmOcFGbRBd5Xsu81pZ0KcTDP3tNbgzIYS8Hgjc9cYlMRWaT+A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgedtgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreerjeenucfhrhhomhepfdfrrghulhculfgrtghkshhonhdfuceophhjsehushgrrdhn vghtqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpjhesuhhsrgdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id AB59B660065; Fri, 31 Jan 2020 08:56:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-781-gfc16016-fmstable-20200127v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 31 Jan 2020 07:54:03 -0600 From: "Paul Jackson" To: bug-grep@gnu.org Subject: =?UTF-8?Q?Re:_bug#39368:_Possible_visualization_bug_in_GNU_grep_3.1_(Ubu?= =?UTF-8?Q?ntu_18.04_x86=5F64)?= Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.19 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.0 (-) You wrote: ========== #> grep -v "Position\|hand type\|^\t\t$" ArticulationsOrder.txt | grep '[^A-Z]' # outputs just endlines ========== When I downloaded your attached file, and converted the above command to the following single, non-wrapped line (as I presume you intended): grep -v "Position\|hand type\|^\t\t$" ArticulationsOrder.txt | grep '[^A-Z]' then I do NOT get just endlines. Rather I get the same useful output that you reported getting when piping this output through "more". _However_, in either case, each output line ends in a carriage return '\r', which I suspect is the key to the problem you report. Try the following: echo 'abc\r' echo 'xyz\r' | more When I do that, I see both the "abc" and the "xyz" I'm guessing you'll see just a blank line and the "xyz". Then, for your ArticulationsOrder.txt data, try the following command, which may (I'm guessing wildly) work better for your purposes: grep -E -v 'hand type|Position' ArticulationsOrder.txt | tr -d '\r' That second grep, the "grep '[^A-Z]'", does nothing that I can see, on your data, since every line has at least one character that is not an [A-Z] upper case letter, so every line matches that pattern. I would suggest that using "grep -E" (or "egrep") is clearer than using "grep" and escaping the '|' symbols. -- Paul Jackson pj@usa.net From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 09:08:21 2020 Received: (at submit) by debbugs.gnu.org; 31 Jan 2020 14:08:21 +0000 Received: from localhost ([127.0.0.1]:36742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWy4-0001a5-TW for submit@debbugs.gnu.org; Fri, 31 Jan 2020 09:08:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:59616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixWy3-0001Zy-DY for submit@debbugs.gnu.org; Fri, 31 Jan 2020 09:08:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42736) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixWy2-0003sL-Dn for bug-grep@gnu.org; Fri, 31 Jan 2020 09:08:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixWy1-0002Ke-AA for bug-grep@gnu.org; Fri, 31 Jan 2020 09:08:18 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:35143) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixWy1-0002I5-2E for bug-grep@gnu.org; Fri, 31 Jan 2020 09:08:17 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8C319857 for ; Fri, 31 Jan 2020 09:08:15 -0500 (EST) Received: from imap21 ([10.202.2.71]) by compute1.internal (MEProxy); Fri, 31 Jan 2020 09:08:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ML9f1E l0AVlizRfPXUdSplO1dTPyown0E17+I6YiarA=; b=RV363mCCRPqfSqA+QY8suB Kh7LrnboNuUfwaETtIHhTvYlp3RNNNVN9fuTfoYAFr7ifGfztEV6/bRSHvyWjF+x zNNgc5Jn62N1bDR1OFnPCXkbK4ISf5+fiE7n5l3stX4wS4bB+ymk2ecVaGXW0VMa WB6DNWXQkEbGt8YMSmXRCQ7gE7yyj4JZ3zgCNodnj8tVG+tlwqn3qYQj6MxCiInB RNPXaVxy3F5lONO7HRG7rH6QPRUtbkZy/NSNKYnxj47RruWZ/4RZ/qcqvTN3yTaI pJjnPyrUGd+qmpYCScNkb6G8kCoxOeXwfI7+OZcqDSZwxQ3pe888ptvBELxU3p4A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgedtgdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreerjeenucfhrhhomhepfdfrrghulhculfgrtghkshhonhdfuceophhjsehushgrrdhn vghtqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpjhesuhhsrgdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id DE8D8660069; Fri, 31 Jan 2020 09:08:14 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-781-gfc16016-fmstable-20200127v1 Mime-Version: 1.0 Message-Id: <5e06c851-1e2d-4e94-84e4-d973170d1d1e@www.fastmail.com> In-Reply-To: References: Date: Fri, 31 Jan 2020 08:06:28 -0600 From: "Paul Jackson" To: bug-grep@gnu.org Subject: =?UTF-8?Q?Re:_bug#39368:_Possible_visualization_bug_in_GNU_grep_3.1_(Ubu?= =?UTF-8?Q?ntu_18.04_x86=5F64)?= Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.19 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.0 (-) oh - and the exclusion of lines with the pattern "^\t\t$" makes no difference on your dataset, since that dataset has no lines consisting solely and exactly of two tabs. -- Paul Jackson pj@usa.net From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 15:20:57 2020 Received: (at 39368-done) by debbugs.gnu.org; 31 Jan 2020 20:20:57 +0000 Received: from localhost ([127.0.0.1]:38143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixcmf-0004Sr-CN for submit@debbugs.gnu.org; Fri, 31 Jan 2020 15:20:57 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixcme-0004Sa-0F for 39368-done@debbugs.gnu.org; Fri, 31 Jan 2020 15:20:56 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7BB481600DF; Fri, 31 Jan 2020 12:20:48 -0800 (PST) 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 IXI5zKxVy4l7; Fri, 31 Jan 2020 12:20:47 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D1FDF1600D4; Fri, 31 Jan 2020 12:20:47 -0800 (PST) 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 5sB6-H2FhKig; Fri, 31 Jan 2020 12:20:47 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B6D981600D1; Fri, 31 Jan 2020 12:20:47 -0800 (PST) Subject: Re: bug#39368: Possible visualization bug in GNU grep 3.1 (Ubuntu 18.04 x86_64) To: Paul Jackson References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <08dc5bb4-6198-b681-7a48-eb862897ffff@cs.ucla.edu> Date: Fri, 31 Jan 2020 12:20:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39368-done Cc: 39368-done@debbugs.gnu.org, Andrea Ranieri X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) On 1/31/20 5:54 AM, Paul Jackson wrote: > I'm guessing you'll see just a blank line and the "xyz". Yes, this appears to be an issue where the user's terminal emulator clears the line after \r\n is output. So the user will see similar output using (say) 'cat', and the problem has nothing to do with 'grep' per se. Closing the bug report here, though it's quite possible a bug report should be filed against the user's terminal emulator (whatever it is). From unknown Wed Jun 18 00:28:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 29 Feb 2020 12:24:04 +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