Vadim Smelyansky <[EMAIL PROTECTED]> writes:
> On Tue, 18 May 1999, Vadim Vygonets wrote:
>
> VV>Anyway, does anybody in this world use 'test' instead of '['?
> For what? for longer strings in script? :)
test -w foo && do_sth_with foo
looks more readable than
[ -w foo ] && do_sth_with foo
and is only 1 char longer, and is shorter than
if [ -w foo ]; then do_sth_with foo; fi
I actually use the first form in my scripts and prefer it to the
second one). Otherwise, just kidding ;-)
--
Oleg Goldshmidt [EMAIL PROTECTED]
BLOOMBERG L.P. (BFM) [EMAIL PROTECTED]