Describe how to prevent *.core files from being created using ulimit.
While here, pet mandoc. Reviewed by: eadler (previous revision), jilles (previous revision), mat (mentor) Approved by: manpages (jilles), mat (mentor) Differential Revision: https://reviews.freebsd.org/D15609
This commit is contained in:
parent
9146ab42b9
commit
632f81c504
52
bin/sh/sh.1
52
bin/sh/sh.1
@ -32,7 +32,7 @@
|
|||||||
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd October 8, 2016
|
.Dd July 19, 2018
|
||||||
.Dt SH 1
|
.Dt SH 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -69,8 +69,7 @@ is close to the
|
|||||||
.St -p1003.1
|
.St -p1003.1
|
||||||
specification for the shell.
|
specification for the shell.
|
||||||
It only supports features
|
It only supports features
|
||||||
designated by
|
designated by POSIX,
|
||||||
.Tn POSIX ,
|
|
||||||
plus a few Berkeley extensions.
|
plus a few Berkeley extensions.
|
||||||
This man page is not intended to be a tutorial nor a complete
|
This man page is not intended to be a tutorial nor a complete
|
||||||
specification of the shell.
|
specification of the shell.
|
||||||
@ -248,9 +247,7 @@ particularly in larger scripts.
|
|||||||
.It Fl f Li noglob
|
.It Fl f Li noglob
|
||||||
Disable pathname expansion.
|
Disable pathname expansion.
|
||||||
.It Fl h Li trackall
|
.It Fl h Li trackall
|
||||||
A do-nothing option for
|
A do-nothing option for POSIX compliance.
|
||||||
.Tn POSIX
|
|
||||||
compliance.
|
|
||||||
.It Fl I Li ignoreeof
|
.It Fl I Li ignoreeof
|
||||||
Ignore
|
Ignore
|
||||||
.Dv EOF Ap s
|
.Dv EOF Ap s
|
||||||
@ -344,9 +341,7 @@ variable subjected to parameter expansion and arithmetic expansion)
|
|||||||
to standard error before it is executed.
|
to standard error before it is executed.
|
||||||
Useful for debugging.
|
Useful for debugging.
|
||||||
.It Li nolog
|
.It Li nolog
|
||||||
Another do-nothing option for
|
Another do-nothing option for POSIX compliance.
|
||||||
.Tn POSIX
|
|
||||||
compliance.
|
|
||||||
It only has a long name.
|
It only has a long name.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
@ -409,7 +404,7 @@ The word starting with
|
|||||||
.Ql #
|
.Ql #
|
||||||
and the rest of the line are ignored.
|
and the rest of the line are ignored.
|
||||||
.Pp
|
.Pp
|
||||||
.Tn ASCII
|
ASCII
|
||||||
.Dv NUL
|
.Dv NUL
|
||||||
characters (character code 0) are not allowed in shell input.
|
characters (character code 0) are not allowed in shell input.
|
||||||
.Ss Quoting
|
.Ss Quoting
|
||||||
@ -447,9 +442,7 @@ If
|
|||||||
.Ar c
|
.Ar c
|
||||||
is a backslash, it must be doubled.
|
is a backslash, it must be doubled.
|
||||||
.It \ee
|
.It \ee
|
||||||
The ESC character
|
The ESC character (ASCII 0x1b)
|
||||||
.Tn ( ASCII
|
|
||||||
0x1b)
|
|
||||||
.It \ef
|
.It \ef
|
||||||
Formfeed
|
Formfeed
|
||||||
.It \en
|
.It \en
|
||||||
@ -745,9 +738,7 @@ passing the arguments and the environment to the program.
|
|||||||
If the program is not a normal executable file
|
If the program is not a normal executable file
|
||||||
(i.e., if it does not begin with the
|
(i.e., if it does not begin with the
|
||||||
.Dq "magic number"
|
.Dq "magic number"
|
||||||
whose
|
whose ASCII representation is
|
||||||
.Tn ASCII
|
|
||||||
representation is
|
|
||||||
.Dq Li #! ,
|
.Dq Li #! ,
|
||||||
resulting in an
|
resulting in an
|
||||||
.Er ENOEXEC
|
.Er ENOEXEC
|
||||||
@ -1064,11 +1055,16 @@ command.
|
|||||||
.Ss Grouping Commands Together
|
.Ss Grouping Commands Together
|
||||||
Commands may be grouped by writing either
|
Commands may be grouped by writing either
|
||||||
.Pp
|
.Pp
|
||||||
.D1 Li \&( Ns Ar list Ns Li \%)
|
.Sm off
|
||||||
|
.Bd -literal -offset -ident
|
||||||
|
.Po Ar list Pc
|
||||||
|
.Ed
|
||||||
|
.Sm on
|
||||||
.Pp
|
.Pp
|
||||||
or
|
or
|
||||||
.Pp
|
.Bd -literal -offset -ident
|
||||||
.D1 Li { Ar list Ns Li \&; }
|
.No { Ar list ; }
|
||||||
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
The first form executes the commands in a subshell environment.
|
The first form executes the commands in a subshell environment.
|
||||||
A subshell environment has its own copy of:
|
A subshell environment has its own copy of:
|
||||||
@ -1750,11 +1746,11 @@ and contain integer constants.
|
|||||||
.It Unary operators
|
.It Unary operators
|
||||||
.Li "! ~ + -"
|
.Li "! ~ + -"
|
||||||
.It Binary operators
|
.It Binary operators
|
||||||
.Li "* / % + - << >> < <= > >= == != & ^ | && ||"
|
.Li "* / % + - << >> < <= > >= == != & ^ | && ||"\&
|
||||||
.It Assignment operators
|
.It Assignment operators
|
||||||
.Li "= += -= *= /= %= <<= >>= &= ^= |="
|
.Li "= += -= *= /= %= <<= >>= &= ^= |="
|
||||||
.It Conditional operator
|
.It Conditional operator
|
||||||
.Li "? :"
|
.Li "? :"\&
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The result of the expression is substituted in decimal.
|
The result of the expression is substituted in decimal.
|
||||||
@ -1862,7 +1858,7 @@ A locale-dependent range of characters may be specified using a minus sign.
|
|||||||
A named class of characters (see
|
A named class of characters (see
|
||||||
.Xr wctype 3 )
|
.Xr wctype 3 )
|
||||||
may be specified by surrounding the name with
|
may be specified by surrounding the name with
|
||||||
.Ql \&[:
|
.Ql \&[:\&
|
||||||
and
|
and
|
||||||
.Ql :\&] .
|
.Ql :\&] .
|
||||||
For example,
|
For example,
|
||||||
@ -2099,9 +2095,7 @@ Backspace
|
|||||||
Suppress the trailing newline (this has the side-effect of truncating the
|
Suppress the trailing newline (this has the side-effect of truncating the
|
||||||
line if it is not the last character)
|
line if it is not the last character)
|
||||||
.It \ee
|
.It \ee
|
||||||
The ESC character
|
The ESC character (ASCII 0x1b)
|
||||||
.Tn ( ASCII
|
|
||||||
0x1b)
|
|
||||||
.It \ef
|
.It \ef
|
||||||
Formfeed
|
Formfeed
|
||||||
.It \en
|
.It \en
|
||||||
@ -2301,8 +2295,7 @@ Move the specified
|
|||||||
.Ar job
|
.Ar job
|
||||||
or the current job to the foreground.
|
or the current job to the foreground.
|
||||||
.It Ic getopts Ar optstring var
|
.It Ic getopts Ar optstring var
|
||||||
The
|
The POSIX
|
||||||
.Tn POSIX
|
|
||||||
.Ic getopts
|
.Ic getopts
|
||||||
command.
|
command.
|
||||||
The
|
The
|
||||||
@ -2415,7 +2408,7 @@ read from the standard input.
|
|||||||
The trailing newline
|
The trailing newline
|
||||||
is deleted from the line and the line is split as
|
is deleted from the line and the line is split as
|
||||||
described in the section on
|
described in the section on
|
||||||
.Sx White Space Splitting (Field Splitting)
|
.Sx White Space Splitting (Field Splitting)\&
|
||||||
above, and
|
above, and
|
||||||
the pieces are assigned to the variables in order.
|
the pieces are assigned to the variables in order.
|
||||||
If there are more pieces than variables, the remaining
|
If there are more pieces than variables, the remaining
|
||||||
@ -2663,6 +2656,9 @@ They are mutually exclusive.
|
|||||||
The maximum size of socket buffer usage, in bytes.
|
The maximum size of socket buffer usage, in bytes.
|
||||||
.It Fl c Ar coredumpsize
|
.It Fl c Ar coredumpsize
|
||||||
The maximal size of core dump files, in 512-byte blocks.
|
The maximal size of core dump files, in 512-byte blocks.
|
||||||
|
Setting
|
||||||
|
.Ar coredumpsize
|
||||||
|
to 0 prevents core dump files from being created.
|
||||||
.It Fl d Ar datasize
|
.It Fl d Ar datasize
|
||||||
The maximal size of the data segment of a process, in kilobytes.
|
The maximal size of the data segment of a process, in kilobytes.
|
||||||
.It Fl f Ar filesize
|
.It Fl f Ar filesize
|
||||||
|
Loading…
Reference in New Issue
Block a user