From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44941: 28.0.50; M-x grep, perhaps all asynch subprocesses Date: Mon, 30 Nov 2020 20:04:05 +0200 Message-ID: <83eekak9gq.fsf@gnu.org> References: <83y2ikkwpw.fsf@gnu.org> <831rgalum0.fsf@gnu.org> <87a6uyc0dr.fsf@igel.home> <83im9mkdg4.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44941@debbugs.gnu.org, schwab@linux-m68k.org, rms@gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 19:05: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 1kjnY3-000075-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 19:05:15 +0100 Original-Received: from localhost ([::1]:51078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnY2-0002LA-HS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 13:05:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjnXq-0002K4-2v for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 13:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjnXp-0007mf-P8 for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 13:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjnXp-0006k6-KB for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 13:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 18:05: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.160675947125869 (code B ref 44941); Mon, 30 Nov 2020 18:05:01 +0000 Original-Received: (at 44941) by debbugs.gnu.org; 30 Nov 2020 18:04:31 +0000 Original-Received: from localhost ([127.0.0.1]:56609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjnXK-0006jA-Tb for submit@debbugs.gnu.org; Mon, 30 Nov 2020 13:04:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjnXI-0006iu-Io for 44941@debbugs.gnu.org; Mon, 30 Nov 2020 13:04:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33522) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnXC-0007j0-Kh; Mon, 30 Nov 2020 13:04:22 -0500 Original-Received: from [176.228.60.248] (port=1395 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kjnX2-0005Zw-Pu; Mon, 30 Nov 2020 13:04:13 -0500 In-Reply-To: (message from Jean Louis on Mon, 30 Nov 2020 19:46:28 +0300) 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:194664 Archived-At: > Date: Mon, 30 Nov 2020 19:46:28 +0300 > From: Jean Louis > Cc: Andreas Schwab , 44941@debbugs.gnu.org, > rms@gnu.org > > > > >> 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 No. Please read the 'cut' documentation to see what does -c do there.