On Tue, Jan 09, 2024 at 08:35:00AM -0800, Ross Vandegrift wrote:
> Here's the difference:
> - `bash -c /bin/true` directly execs /bin/true without a fork
> - `dash -c /bin/true` always fork & execs
[snip]
> (Side note: bash's lack of fork is surprising, but I'm surely ignorant of
> some details.)

Found a note in bash's CHANGES [1] file about this:
| b. Bash attempts to optimize the number of times it forks when executing
|    commands in subshells and from `bash -c'.

This was a new feature in 5.1-alpha.

Ross

[1] https://git.savannah.gnu.org/cgit/bash.git/tree/CHANGES#n1025


_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to