On Mon, Jun 20 2022, Junio C Hamano wrote: > I was expecting you to use \Q...\E (and passing $remote_url as an > argument to perl script) actually. If you let $remote_url > interpolated by shell into a script of the host language, whether perl > or sed, you'd be responsible for quoting it appropriately for the host > language yourself, and use of single-quote pair would not necessarily > be sufficient, no? Yes, I wasn't aiming to try to come up with an ideal Perl version, just wondering why it needed the s/perl/sed/ while-we're-at-it...