<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="umask">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>umask</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">nosh</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv><refname>umask</refname><refpurpose>change permissions mask then chain</refpurpose></refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>umask</command> <arg choice='req'><replaceable>mask</replaceable></arg> <arg choice='req'><replaceable>next-prog</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection><title>NOTE</title>

<para>
Most shells have a built-in <command>umask</command> command that does not chain and has
additional interactive functionality.
See the manual for each individual shell for its built-in command.
This command is more commonly used with <citerefentry><refentrytitle>exec</refentrytitle><manvolnum>1</manvolnum></citerefentry> and <citerefentry><refentrytitle>nosh</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
</para>

</refsection><refsection><title>Description</title>

<para>
<command>umask</command> is a chain-loading utility that changes its permissions mask to
<replaceable>mask</replaceable> and then chain loads to <replaceable>next-prog</replaceable> with the <citerefentry><refentrytitle>execvp</refentrytitle><manvolnum>3</manvolnum></citerefentry> function.
</para>

<para>
<replaceable>next-prog</replaceable> may contain its own command line options, which <command>umask</command> will ignore.
</para>

<para>
The mask is a number, and follows the C language conventions.
Conventionally masks are specified in octal, which in the C language is
specified by a leading 0.
</para>

</refsection><refsection><title>Author</title>
<para><author><personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname></author></para>
</refsection>

</refentry>
