[Top][All Lists]

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


From: Alexandre Duret-Lutz
Subject: Re: _AS_DETECT_BETTER_SHELL speedup
Date: Sat, 29 Jan 2005 14:07:53 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

It seems to me that replacing

   (foo) 2>/dev/null


   (exec foo) 2>/dev/null

would also replace two forks by one, and it looks a lot less

However my understanding is that modern shells already detect
these cases and perform the optimization by themselves.  I know
for sure that Zsh has the machinery for this (along with some
other hairy tricks to limit forks at other places), and, from
what I can observe from the command line, so does Bash.  

IMHO: don't bother and let the shell do its job.
Alexandre Duret-Lutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]