mtimeout.1: Use correct dash for number ranges.
[misc] / with-umask.1
1 .de VS
2 .sp 1
3 .RS
4 .nf
5 .ft B
6 ..
7 .de VE
8 .ft R
9 .fi
10 .RE
11 .sp 1
12 ..
13 .TH with-umask 1 "5 April 2015" "Edgeware tools"
14 .SH NAME
15 with-umask \- run a command with a particular umask set
16 .SH SYNOPSIS
17 .B with-umask
18 .I mode
19 .I command
20 .RI [ arguments ...]
21 .SH DESCRIPTION
22 The
23 .B with-umask
24 program sets its umask to
25 .I mode
26 and then executes
27 .I command
28 with the given
29 .IR arguments .
30 .PP
31 The
32 .I mode
33 may be either a literal mask written in octal, where set bits correspond
34 to mode bits to be forced clear when creating files, or a symbolic mode
35 in
36 .BR chmod (1)
37 style listing the mode bits to be preserved. (Other forms may be
38 acceptable:
39 .B with-umask
40 is currently a shell script, and uses
41 .BR /bin/sh 's
42 .B umask
43 built-in to do its work.)
44 .PP
45 Command line options:
46 .TP
47 .B "\-h"
48 Show very brief help, and exit.
49 .SH BUGS
50 None known.
51 .SH AUTHOR
52 Mark Wooding <mdw@distorted.org.uk>