From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#44941: 28.0.50; M-x grep, perhaps all asynch subprocesses Date: Mon, 30 Nov 2020 19:46:28 +0300 Message-ID: References: <83y2ikkwpw.fsf@gnu.org> <831rgalum0.fsf@gnu.org> <87a6uyc0dr.fsf@igel.home> <83im9mkdg4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: 44941@debbugs.gnu.org, Andreas Schwab , rms@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 17:51:15 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 1kjmOR-00055C-C6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 17:51:15 +0100 Original-Received: from localhost ([::1]:35536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjmOQ-0004qh-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 11:51:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjmOE-0004pf-5Z for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 11:51:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjmOD-0004VP-UW for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 11:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjmOD-0000Ry-RX for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 11:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44941 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug unreproducible Original-Received: via spool by 44941-submit@debbugs.gnu.org id=B44941.16067550521709 (code B ref 44941); Mon, 30 Nov 2020 16:51:01 +0000 Original-Received: (at 44941) by debbugs.gnu.org; 30 Nov 2020 16:50:52 +0000 Original-Received: from localhost ([127.0.0.1]:56478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjmO3-0000RV-O0 for submit@debbugs.gnu.org; Mon, 30 Nov 2020 11:50:51 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:59855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjmO1-0000RI-MO for 44941@debbugs.gnu.org; Mon, 30 Nov 2020 11:50:50 -0500 Original-Received: from localhost ([::ffff:197.157.34.183]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C000E.000000005FC522E3.00000FEF; Mon, 30 Nov 2020 16:50:42 +0000 Content-Disposition: inline In-Reply-To: <83im9mkdg4.fsf@gnu.org> 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:194657 Archived-At: * Eli Zaretskii [2020-11-30 19:39]: > > From: Andreas Schwab > > Cc: rms@gnu.org, 44941@debbugs.gnu.org > > Date: Mon, 30 Nov 2020 16:47:28 +0100 > > > > On Nov 30 2020, Eli Zaretskii wrote: > > > > >> From: Richard Stallman > > >> Cc: 44941@debbugs.gnu.org > > >> Date: Sun, 29 Nov 2020 23:46:22 -0500 > > >> > > >> Here is the cgrep script: > > >> > > >> #!/bin/bash > > >> > > >> grep -a "$@" | cut -c -200 > > >> > > >> cut seems to be responsible for the problem by buffering output even to a tty. > > > > > > Sounds like a useful feature to ask Grep developers to add it. > > > > That feature already exists: stdbuf. > > I'm not sure I understand: I meant the feature to limit the output > lines to a given column count. Is it not this option for limiting? -m NUM, --max-count=NUM Stop reading a file after NUM matching lines. If the input is standard input from a regular file, and NUM matching lines are output, grep ensures that the standard input is positioned to just after the last matching line before exiting, regardless of the presence of trailing context lines. This enables a calling process to resume a search. When grep stops after NUM matching lines, it outputs any trailing context lines. When the -c or --count option is also used, grep does not output a count greater than NUM. When the -v or --invert-match option is also used, grep stops after outputting NUM non-matching lines.