Hello,
I need some help in interpreting the IEEE 1003.1 document. Given below is
an abstract.
-----------------------------------------------------------------------------
17180 OPTIONS
17181 The file utility shall conform to the Base Definitions volume of
IEEE
Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines, except
that
the order of the -m, -d, and -M options shall be significant.
...
17198 If the -m option is specified without specifying the -d option or
the -M
option, position-sensitive default system tests shall be applied
after
the position-sensitive tests specified by the -m option. If the -M
option
is specified with the -d option, the -m option, or both, or the -m
option is specified with the -d option, the concatenation of the
position-sensitive tests specified by these options shall be applied
in
the order specified by the appearance of these options. If a -M or
-m file option-argument is -, the results are unspecified.
---------------------------------------------------------------------------------------------------
If I say:-
# file -d -m <magic file1> -d -M <magic file2> test.c
does this not mean that default tests will be applied to test.c first?
The default test will state that this is a C file.
What exactly does this term "concatenation of position-sensitive tests"
imply (if not the above result)?
thanks
-kamal
------------------------------------------------------------------------------
Kamal R. Prasad
AIX Support & Test, IBM India Software Labs
Golden Enclave, Airport Road, Bangalore-560017, India
Phone : +91-80-5094963, Internal Ext : 2963
-------
|