10.1;trty (trait_type), revision 1.0, 88/07/05
trty (trait_type) - test a type trait.
usage: trty [-n node_spec] type_name trait_name {cl}
DESCRIPTION
trty tests whether some type supports a given trait. It prints a message
and returns a status that a shell can test.
Some built-in types support some traits, other traits have their type
managers loaded dynamically. Note that trty can test whether a trait has
built-in support only on your own node. The -n option does not let you
test for built-in support in another node. trty will test for dynamic
support on your own or on another node.
type_name (required)
Specify the name of type to be tested.
trait_name (required)
Specify the name of the trait to be tested.
OPTION
-n node_spec Specify the node on which the type is to be tested. Type
help node_spec for details about node specification
syntax. You may also specify the entry directory of a
volume mounted for software installation, as shown in the
example below. If this option is omitted, the type is
tested on the current node.
EXAMPLES
Please note that these examples may not work exactly as shown unless you
have these named traits and type installed on your node.
$ trty net_iic io_oc
Type "net_iic" does not support trait "io_oc".
The following example demonstrates a test on a volume mounted for
software installation
$ trty net_iic net_hdwr -n/mounted_vol
Type "net_iic" supports trait "net_hdwr".
The trty program produces a status that a shell (in this case, the Aegis
shell) can test for success or failure.
$ if trty net_iic net_hdwr >/dev/nul
$_ then args OK
$_ else args Oops
$_ endif
OK
$ if trty net_iic io_oc >/dev/nul
$_ then args OK
$_ else args Oops
$_ endif
Oops
SEE ALSO
More information is available. Type
help dlty For information on deleting types and named traits
help lty For information on listing types and named traits
help inty For information on intalling new types and named traits