From: Ævar Arnfjörð Bjarmason Date: Sat, 23 Jul 2022 04:52:59 GMT Subject: Re: [PATCH 1/2] t/t0021: convert the rot13-filter.pl script to C Message-ID: <220723.86tu78qvjb.gmgdl@evledraar.gmail.com> In-Reply-To: <99823077be77bc621cfa8ccf3303bd612da343ad.1658518769.git.matheus.bernardino@usp.br> On Fri, Jul 22 2022, Matheus Tavares wrote: > +my @quoted_args = map "'$_'", @ARGV; > +exec "test-tool rot13-filter @quoted_args"; > +die "failed to exec test-tool"; You end up throwing this away, but this whole escaping business is just bad use of the API, you can pass a list to "exec" have it escape arguments. See "perldoc -f exec".