Sander van Dijk --> dwm (2007-05-23 16:18:34 +0200):
> On 5/23/07, Anselm R. Garbe <[EMAIL PROTECTED]> wrote:
>> Thanks! I applied it to the repo, however I'm not totally sure
>> the use of [ is a good idea. Is [ a symlink to test in any Unix?
>
> 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.


> 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 `['.


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Reply via email to