GNU bug report logs - #42022
--print-data-base should be unambiguous and more easily machine-read

Previous Next

Package: emacs;

Reported by: "Daniel Colascione" <dancol <at> dancol.org>

Date: Tue, 23 Jun 2020 15:44:01 UTC

Severity: normal

Tags: notabug

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42022 in the body.
You can then email your comments to 42022 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42022; Package emacs. (Tue, 23 Jun 2020 15:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Daniel Colascione" <dancol <at> dancol.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 23 Jun 2020 15:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Daniel Colascione" <dancol <at> dancol.org>
To: bug-gnu-emacs <at> gnu.org
Subject: --print-data-base should be unambiguous and more easily machine-read
Date: Tue, 23 Jun 2020 08:43:30 -0700
It's occasionally useful to parse the output of make --print-data-base,
e.g., for tab completion. Unfortunately, the current (well, 4.2, but I
don't see that it's changed in 4.3) output format prints newlines in
variable definitions verbatim, making it possible for variable contents to
appear (from the point of view of a --print-data-base output parser) to be
makefile directive. For example:

# Begin spoof.mk
define nl


endef
spoof:=$(nl)$(nl)\# Files$(nl)$(nl)foo: bar$(nl)
# End spoof.mk

Make should emit variable variables in a form that cannot be confused with
makefile directives.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42022; Package emacs. (Wed, 24 Jun 2020 13:35:01 GMT) Full text and rfc822 format available.

Message #8 received at 42022 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: "Daniel Colascione" <dancol <at> dancol.org>
Cc: 42022 <at> debbugs.gnu.org
Subject: Re: bug#42022: --print-data-base should be unambiguous and more
 easily machine-read
Date: Wed, 24 Jun 2020 09:34:08 -0400
"Daniel Colascione" <dancol <at> dancol.org> writes:

> It's occasionally useful to parse the output of make
> --print-data-base, e.g., for tab completion.  Unfortunately, the
> current (well, 4.2, but I don't see that it's changed in 4.3) output

I guess this report is intended for GNU Make, you can create it at
https://savannah.gnu.org/bugs/?func=additem&group=make




Added tag(s) notabug. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 07 Oct 2020 18:26:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 42022 <at> debbugs.gnu.org and "Daniel Colascione" <dancol <at> dancol.org> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 07 Oct 2020 18:26:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Nov 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.