[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: regression: "sh -c" change causes FTBFS



Stéphane Glondu wrote:

> ocamlbuild's logic is definitively incorrect, but I'm not sure if dash's
> new behaviour is correct. "bash -c" doesn't skip fork() when a
> redirection is set up, I guess for a reason. "dash -c" should probably
> do the same for the same reason.

Hold on a second.  Dash is not supposed to be a bash emulator. :)

ksh93 -c "/bin/sleep 100 >dev/null" does skip a fork().  I suspect
bash does not skip a fork in this case for the same reason that

	bash -c 'echo hi; /bin/sleep 100'

does not skip a fork.


Reply to: