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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Localization<br />

Exit Values<br />

Portability<br />

group:SYS1:rwx<br />

fdefault:user: WELLIE2: rw-<br />

fdefault:group:SYS1:rwx<br />

default:user:WELLIE4:---<br />

3. To copy the ACL entries from file foo such that the file bar will have the same<br />

ACL entries:<br />

getfacl foo | setfacl -S - bar<br />

getfacl uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

>0 Failure<br />

Related Information<br />

find, ls, setfacl<br />

getfacl displays the ACL entries in the following order: access, file default, and<br />

directory default. Errors will occur in the following situations:<br />

v If a file is not a directory and the -d or -f option was used, you will get a warning<br />

and getfacl will continue to the next file.<br />

v If the user does not have access to a file, you will get a warning and getfacl will<br />

continue to the next file.<br />

An approved P<strong>OS</strong>IX standard does not exist for getfacl.<br />

getopts — Parse utility options<br />

Format<br />

Description<br />

Options<br />

getopts opstring name [arg ...]<br />

getfacl<br />

getopts obtains options and their arguments from a list of parameters that follows<br />

the standard P<strong>OS</strong>IX.2 option syntax (that is, single letters preceded by a hyphen (–)<br />

and possibly followed by an argument value). Typically, shell scripts use getopts to<br />

parse arguments passed to them. When you specify arguments with the arg<br />

argument on the getopts command line, getopts parses those arguments instead<br />

of the script command-line arguments (see set).<br />

opstring<br />

Gives all the option letters that the script recognizes. For example, if the<br />

Chapter 2. Shell command descriptions 301

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

Saved successfully!

Ooh no, something went wrong!