February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Evaluates conditional expressions.
Syntax
test [expression]
Options
None
Oddities
It's the same as [.
Example
$ $ test -x buzz # Is buzz executable? $ print $? 0 # Yup $ $ test -b buzz # Is buzz a block special file? $ print $? 1 # Nope $
Read now
Unlock full access