This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [docs] Explain how to use multiple file-name patterns in RUNTESTFLAGS


On Aug 22, 2017, at 11:53 AM, Daniel Santos <daniel.santos@pobox.com> wrote:
> 
> OK, the problem is at line 4014 of gcc/Makefile.in:
> 
>          $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)"
> RUNTESTFLAGS="$(RUNTESTFLAGS)" \
>            check-parallel-$* \

So, this is typical of sh scripting.  Most kids don't quote and know how to quote in other than trivial cases.  It is one of the reasons why scripting is both better and worse.  sh from day 1 should have had a quote function that would quote the operand, it doesn't.  If it did, we'd put $(quote ...) in there instead of "..." and it would just work.

> I presume that the solution would be to re-escape the contents of
> RUNTESTFLAGS.

Yes.  The annoyance factor is so high, that no one ever does.  Feel free rot ignore the problem.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]