From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#44409: Example in manual no longer works Date: Wed, 04 Nov 2020 07:32:42 +0800 Message-ID: <87h7q6j9t1.5.fsf@jidanni.org> References: <87mtzzj9fa.5.fsf@jidanni.org> <31F4D2BA-185A-484B-845D-8C812B2D9B30@gnu.org> <87tuu6j2zq.5.fsf@jidanni.org> <8CA5025D-C9C5-4371-9636-8A04A46D9806@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39497"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44409@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 04 00:33:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ka5nc-000AAX-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 00:33:13 +0100 Original-Received: from localhost ([::1]:41650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka5nb-0003Ko-JF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 18:33:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nS-0003JI-SZ for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 18:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka5nS-0005ZQ-IM for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 18:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka5nS-0007VK-Ew for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 18:33:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87mtzzj9fa.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44409 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 44409@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160444637928835 (code B ref -1); Tue, 03 Nov 2020 23:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 23:32:59 +0000 Original-Received: from localhost ([127.0.0.1]:46798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nO-0007Uw-Tm for submit@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nL-0007Um-22 for submit@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nK-0003D4-SO for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 18:32:54 -0500 Original-Received: from dormouse.elm.relay.mailchannels.net ([23.83.212.50]:43422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nH-0005X4-0f; Tue, 03 Nov 2020 18:32:54 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4AFEF120D44; Tue, 3 Nov 2020 23:32:48 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com (100-98-64-6.trex.outbound.svc.cluster.local [100.98.64.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D13D4121095; Tue, 3 Nov 2020 23:32:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Tue, 03 Nov 2020 23:32:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Print-Bottle: 0f7c1e8f06d54522_1604446368094_2956382007 X-MC-Loop-Signature: 1604446368094:3196475871 X-MC-Ingress-Time: 1604446368094 Original-Received: from pdx1-sub0-mail-a100.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTP id 992AC7E4FD; Tue, 3 Nov 2020 15:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=wz24Ji0TrGMrkx5gKn8TIs1e3JU=; b=R3IQU9oh5RRdc 6rIHH6iAc4dz+X9vlUo3Vr75XNUN4vrbPB/MgKxRwlK3L7XvQ4HwyD3mpOcvGUTk xrRLyi1IB7GuWg2+dHIC76sGauM/Mrhz1byGyq0T5+kPAJt4lLz6Mr0TFoMxKote VnitILd0+GZOhXXfe9WP8v5QNTfTpY= Original-Received: from jidanni.org (114-41-29-107.dynamic-ip.hinet.net [114.41.29.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTPSA id CBEAD7E4F0; Tue, 3 Nov 2020 15:32:46 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a100 Received-SPF: pass client-ip=23.83.212.50; envelope-from=jidanni@jidanni.org; helo=dormouse.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 18:32:48 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192653 Archived-At: >>>>> "EZ" == Eli Zaretskii writes: EZ> The example in the manual doesn't mention /etc/motd of any other binary file. It uses text files, where this issue doesn't exist. Since when is /etc/motd a binary file? If it were a binary file, the first grep, >> $ grep --color -nH --null -e a /etc/motd >> /etc/motd:2:The programs included with the Debian GNU/Linux system are free software; >> /etc/motd:3:the exact distribution terms for each program are >> described in the... would fail. But it doesn't. Only the second grep fails: >> $ grep --color -nH --null -e a /etc/motd | grep x >> Binary file (standard input) matches So we see the issue indeed exists with text files!! Double proof: $ file /etc/motd /etc/motd: ASCII text Thus we see that one cannot simply slap "| grep bar | grep toto" onto the end of a working grep command anymore! Back when the manual was written, one could. But not anymore. EZ> Yes, but you need to edit that prompt anyway in order to type the EZ> command with a pipe, so the original prompt doesn't matter much. No! In the past one could simply slap the pipe(s) on to the back. Now that no longer works. Therefore the example needs to be rewritten to make it work again. (Or specific instructions need to be given: "Be sure to remove any '--null' that emacs has stuck in, for this example to work.")