Subject: CVS commit: pkgsrc
From: Roland Illig
Date: 2020-03-20 17:39:03
Message id: 20200320163903.53762FB27@cvs.NetBSD.org

Log Message:
show-all: fix output for list variables containing dollar characters

Before, variables containing dollar characters displayed so wrong that it
was hard to explain.

To fix the problem, I typed almost random characters into the code until
the output was exactly as expected. I still do not understand:

* why the list variables need 8 dollars to survive the @x@ loop,
* why the code only works if the dollars come from an external variable
  instead of being written inline,
* why the backslash in the :C modifier needs to be doubled.

Anyway, the output of "bmake show-all-extract" now contains the shell
variable $${extract_file}, just as it should. The dollars are now doubled
in the output and thereby match the source code from the Makefile
exactly.

Files:
RevisionActionfile
1.5modifypkgsrc/regress/show-all/Makefile
1.4modifypkgsrc/regress/show-all/spec