On Wed, May 23, 2007 at 05:24:18PM +0200, Sander van Dijk wrote:
> On 5/23/07, Diego Biurrun <[EMAIL PROTECTED]> wrote:
> >The emacs comparison is nonsensical.  test is a builtin in most shells
> >(offhand bash, ash, dash, ksh, pdksh, zsh, sash on this Debian system
> >where I have a login shell), so of course [ should be a builtin, too.
> >They're the same thing after all.
> 
> Yes, if one is builtin, the other should be as well. I'm just saying
> that it's unclear to me why they should be builtin at all?

test is used way more often.  Given that many (most) if statements
require it to check conditions, I think it makes sense to avoid spawning
a new process for it.

Diego


Reply via email to