Re: Can dependency on /bin/sh be removed?
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Jul 16, 2024, 21:30 UTC
- Message-ID
- <87jzhlf2i4.fsf@igel.home>
- In-Reply-To
- <20240716192307.GA12536@coredump.intra.peff.net>
On Jul 16 2024, Jeff King wrote:
> Again, it's possible that we could detect that no shell metacharacters > are in play and do the word-splitting ourselves. But at that point I > think it should go into run-command's prepare_shell_cmd().
This is what GNU make does (see construct_command_argv_internal), for performance reason. But run_command is probably not performance critical.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."