16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

Usage notes<br />

1. LC_SYNTAX only affects the interpretation of the input file that did not match<br />

any magic file template. It does not affect the interpretation of the magic file.<br />

Because of this, an input file that contains characters from a code page other<br />

than IBM-1047 cannot match the magic file, which contains IBM-1047<br />

characters. If you need to match character in different code pages, you can use<br />

-m or -M to specify a magic file created with the desired code page.<br />

2. The tests applying to a file when running the command follow the table below.<br />

Table 11. file command tests<br />

If the following options are<br />

specified...<br />

Then the position-sensitive tests are<br />

applied in the following sequence...<br />

AMODE > /etc/magic Yes<br />

-d AMODE > /etc/magic Yes<br />

-M MAGIC MAGIC No<br />

-m magic<br />

If the variable _<strong>UNIX</strong>03=YES is set,<br />

magic > AMODE > /etc/magic<br />

If the variable _<strong>UNIX</strong>03 is unset or is<br />

not set to YES,<br />

AMODE > magic<br />

-d -M MAGIC AMODE > /etc/magic > MAGIC Yes<br />

-M MAGIC -d MAGIC > AMODE > /etc/magic Yes<br />

-d -m magic AMODE > /etc/magic > magic Yes<br />

-m magic -d magic > AMODE > /etc/magic Yes<br />

-M MAGIC -m magic MAGIC > magic No<br />

-m magic -M MAGIC magic > MAGIC No<br />

-d -M MAGIC -m magic AMODE > /etc/magic > MAGIC > magic Yes<br />

-d -m magic -M MAGIC AMODE > /etc/magic > magic > MAGIC Yes<br />

-M MAGIC -d -m magic MAGIC > AMODE > /etc/magic > magic Yes<br />

-M MAGIC -m magic -d MAGIC > magic > AMODE > /etc/magic Yes<br />

-m magic -d -M MAGIC magic > AMODE > /etc/magic > MAGIC Yes<br />

-m magic -M MAGIC -d magic > MAGIC > AMODE > /etc/magic Yes<br />

Notes:<br />

Default<br />

contextsensitive<br />

tests<br />

applied?<br />

a. The first column specifies the appearance of the -d, -M and -m options in<br />

the command line.<br />

b. The second column gives what position-sensitive tests are applied and in<br />

what sequence, given the options specified in the first column:<br />

AMODE is a default position-sensitive system test which is only used on<br />

an executable file to determine the addressing mode.<br />

″/etc/magic″ means the default position-sensitive tests in /etc/magic.<br />

″MAGIC″ means the position-sensitive tests in the magic file specified by<br />

″-M″.<br />

″magic″ means the position-sensitive tests in the magic file specified by<br />

″-m″.<br />

Yes<br />

file<br />

Chapter 2. Shell command descriptions 279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!