Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Bjarni Ingi Gislason Newsgroups: gnu.groff.bug Subject: [bug #58016] Add an option "--label=" to show an origin of diagnostics Date: Sat, 21 Mar 2020 15:12:16 -0400 (EDT) Lines: 59 Approved: bug-groff@gnu.org Message-ID: References: <20200321-191214.sv93188.70949@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1584817941 9257 209.51.188.17 (21 Mar 2020 19:12:21 GMT) X-Complaints-To: action@cs.stanford.edu To: Bjarni Ingi Gislason , bug-groff@gnu.org Envelope-to: bug-groff@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [209.51.188.72] X-Savane-Project: groff X-Savane-Tracker: bugs X-Savane-Item-ID: 58016 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 X-Apparently-From: 31.209.211.187 (Savane authenticated user bjarniig) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.72 X-BeenThere: bug-groff@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Bug reports for the GNU version of nroff, troff et al" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200321-191214.sv93188.70949@savannah.gnu.org> Xref: csiph.com gnu.groff.bug:1771 URL: Summary: Add an option "--label=" to show an origin of diagnostics Project: GNU troff Submitted by: bjarniig Submitted on: Sat 21 Mar 2020 07:12:14 PM UTC Category: Core Severity: 3 - Normal Item Group: New feature Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: Subject: Add an option "--label=" to show an origin of diagnostics "groff" has sometimes to read the standard input. In that case diagnostics are output with a "stdin" or a "" label. If more than one file is processed in one run, one can't see from which file the output is. This is for example the case in Makefiles. "grep" has such a label. Its explanation is --label=LABEL Display input actually coming from standard input as input coming from file LABEL. This is especially useful when implementing tools like zgrep, e.g., gzip -cd foo.gz | grep --label=foo -H something. See also the -H option. "diff" (same as '-L') and "diff3" have this option. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/