Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149950060
D15609.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D15609.diff
View Options
Index: head/bin/sh/sh.1
===================================================================
--- head/bin/sh/sh.1
+++ head/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd October 8, 2016
+.Dd July 19, 2018
.Dt SH 1
.Os
.Sh NAME
@@ -69,8 +69,7 @@
.St -p1003.1
specification for the shell.
It only supports features
-designated by
-.Tn POSIX ,
+designated by POSIX,
plus a few Berkeley extensions.
This man page is not intended to be a tutorial nor a complete
specification of the shell.
@@ -248,9 +247,7 @@
.It Fl f Li noglob
Disable pathname expansion.
.It Fl h Li trackall
-A do-nothing option for
-.Tn POSIX
-compliance.
+A do-nothing option for POSIX compliance.
.It Fl I Li ignoreeof
Ignore
.Dv EOF Ap s
@@ -344,9 +341,7 @@
to standard error before it is executed.
Useful for debugging.
.It Li nolog
-Another do-nothing option for
-.Tn POSIX
-compliance.
+Another do-nothing option for POSIX compliance.
It only has a long name.
.El
.Pp
@@ -409,7 +404,7 @@
.Ql #
and the rest of the line are ignored.
.Pp
-.Tn ASCII
+ASCII
.Dv NUL
characters (character code 0) are not allowed in shell input.
.Ss Quoting
@@ -447,9 +442,7 @@
.Ar c
is a backslash, it must be doubled.
.It \ee
-The ESC character
-.Tn ( ASCII
-0x1b)
+The ESC character (ASCII 0x1b)
.It \ef
Formfeed
.It \en
@@ -745,9 +738,7 @@
If the program is not a normal executable file
(i.e., if it does not begin with the
.Dq "magic number"
-whose
-.Tn ASCII
-representation is
+whose ASCII representation is
.Dq Li #! ,
resulting in an
.Er ENOEXEC
@@ -1064,12 +1055,17 @@
.Ss Grouping Commands Together
Commands may be grouped by writing either
.Pp
-.D1 Li \&( Ns Ar list Ns Li \%)
+.Sm off
+.Bd -literal -offset -ident
+.Po Ar list Pc
+.Ed
+.Sm on
.Pp
or
+.Bd -literal -offset -ident
+.No { Ar list ; }
+.Ed
.Pp
-.D1 Li { Ar list Ns Li \&; }
-.Pp
The first form executes the commands in a subshell environment.
A subshell environment has its own copy of:
.Bl -enum
@@ -1750,11 +1746,11 @@
.It Unary operators
.Li "! ~ + -"
.It Binary operators
-.Li "* / % + - << >> < <= > >= == != & ^ | && ||"
+.Li "* / % + - << >> < <= > >= == != & ^ | && ||"\&
.It Assignment operators
.Li "= += -= *= /= %= <<= >>= &= ^= |="
.It Conditional operator
-.Li "? :"
+.Li "? :"\&
.El
.Pp
The result of the expression is substituted in decimal.
@@ -1862,7 +1858,7 @@
A named class of characters (see
.Xr wctype 3 )
may be specified by surrounding the name with
-.Ql \&[:
+.Ql \&[:\&
and
.Ql :\&] .
For example,
@@ -2099,9 +2095,7 @@
Suppress the trailing newline (this has the side-effect of truncating the
line if it is not the last character)
.It \ee
-The ESC character
-.Tn ( ASCII
-0x1b)
+The ESC character (ASCII 0x1b)
.It \ef
Formfeed
.It \en
@@ -2301,8 +2295,7 @@
.Ar job
or the current job to the foreground.
.It Ic getopts Ar optstring var
-The
-.Tn POSIX
+The POSIX
.Ic getopts
command.
The
@@ -2415,7 +2408,7 @@
The trailing newline
is deleted from the line and the line is split as
described in the section on
-.Sx White Space Splitting (Field Splitting)
+.Sx White Space Splitting (Field Splitting)\&
above, and
the pieces are assigned to the variables in order.
If there are more pieces than variables, the remaining
@@ -2663,6 +2656,9 @@
The maximum size of socket buffer usage, in bytes.
.It Fl c Ar coredumpsize
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
The maximal size of the data segment of a process, in kilobytes.
.It Fl f Ar filesize
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 8:02 AM (12 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30518214
Default Alt Text
D15609.diff (3 KB)
Attached To
Mode
D15609: Describe how to prevent *.core files from being created in sh(1) + pet mandoc
Attached
Detach File
Event Timeline
Log In to Comment