Re: [PATCH 10/10] fetch tests: fix needless and buggy re-quoting
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 22, 2022, 15:44 UTC
- Message-ID
- <xmqq1qvg7le7.fsf@gitster.g>
- In-Reply-To
- <69256646-13b0-5619-3161-8d8e319fad50@github.com>
Derrick Stolee <derrickstolee@github.com> writes:
> It seems like this isn't the last time we are going to have a > problem with string replacement like this, and having a well-defined > helper would go far.
I think the idea of [10/10] is to use shell itself as a well-defined helper, with "string replacement" being "$variable_interpolation".
Which isn't a bad approach, I would say.
> The rest of the changes to the test script seem more complicated > than necessary for what _should_ be a simple problem.
True. I am not sure which parts are unnecessary "churn while at it, burying the most interesting and beneficial one at the end as a hostage", and which ones are absolutely needed to reach [10/10]. Perhaps all of them are the latter? I dunno.