On Wed, May 23, 2007 at 05:24:18PM +0200, Sander van Dijk wrote:
> On 5/23/07, Diego Biurrun <diego_AT_biurrun.de> 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
Received on Wed May 23 2007 - 17:34:20 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:42:30 UTC