On 5/23/07, Jukka Salmi <j+dwm_AT_2007.salmi.ch> wrote:
> Sander van Dijk --> dwm (2007-05-23 16:18:34 +0200):
> > I don't know, I do know it's a symlink to test in many linux distros.
> > I personally hate it though, since it obscures the fact that you are
> > calling a program ("test" is much clearer in this sense thatn "[").
>
> That's a matter of taste, of course. I prefer the latter because then
> the expression is delimited by `[' and `]', making it easier to parse
> IMHO.
It's a matter of taste indeed; some people have taste, some don't :-P
(kidding, kidding...)
> > Btw, in bash they are _both_ builtins (don't ask me why,
>
> Probably to give all shell scripts the same performace gain, whether
> they use `test' or `['.
True, but see my other post for why I don't think that's reason enough
by itself.
Greetings, Sander.
Received on Wed May 23 2007 - 17:28:10 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:42:29 UTC