@@ -32,9 +32,9 @@
.\"
.\" @(#)sh.1 8.6 (Berkeley) 5/4/95
.\"
-.Dd January 19, 2003
-.Os
+.Dd May 13, 2016
.Dt DASH 1
+.Os
.Sh NAME
.Nm dash
.Nd command interpreter (shell)
@@ -694,7 +694,6 @@ Builtin commands grouped into a (list) will not affect the current shell.
The second form does not fork another shell so is slightly more efficient.
Grouping commands together this way allows you to redirect
their output as though they were one program:
-.Pp
.Bd -literal -offset indent
{ printf \*q hello \*q ; printf \*q world\\n" ; } \*[Gt] greeting
.Ed
@@ -1183,7 +1182,7 @@ option turns off the effect of any preceding
.Fl P
options.
.It Xo echo Op Fl n
-.Ar args...
+.Ar args...
.Xc
Print the arguments on the standard output, separated by spaces.
Unless the
@@ -1417,7 +1416,6 @@ and
and the option
.Op c ,
which requires an argument.
-.Pp
.Bd -literal -offset indent
while getopts abc: f
do
@@ -1431,7 +1429,6 @@ shift `expr $OPTIND - 1`
.Ed
.Pp
This code will accept any of the following as equivalent:
-.Pp
.Bd -literal -offset indent
cmd \-acarg file file
cmd \-a \-c arg file file
@@ -1522,7 +1519,6 @@ variables.
With the
.Fl p
option specified the output will be formatted suitably for non-interactive use.
-.Pp
.It Xo printf Ar format
.Op Ar arguments ...
.Xc
@@ -1814,7 +1810,7 @@ If n is greater than the number of positional parameters,
.Ic shift
will issue an error message, and exit with return status 2.
.It test Ar expression
-.It \&[ Ar expression Cm ]
+.It \&[ Ar expression No \&]
The
.Ic test
utility evaluates the expression and, if it evaluates
@@ -2176,7 +2172,6 @@ the current limit is displayed.
Limits of an arbitrary process can be displayed or set using the
.Xr sysctl 8
utility.
-.Pp
.It umask Op Ar mask
Set the value of umask (see
.Xr umask 2 )
@@ -2233,15 +2228,6 @@ will throw you into command VI command mode.
Hitting
.Aq return
while in command mode will pass the line to the shell.
-.Sh EXIT STATUS
-Errors that are detected by the shell, such as a syntax error, will cause the
-shell to exit with a non-zero exit status.
-If the shell is not an
-interactive shell, the execution of the shell file will be aborted.
-Otherwise
-the shell will return the exit status of the last command executed, or
-if the exit builtin is used with a numeric argument, it will return the
-argument.
.Sh ENVIRONMENT
.Bl -tag -width MAILCHECK
.It Ev HOME
@@ -2318,12 +2304,21 @@ command.
The process ID of the parent process of the shell.
.El
.Sh FILES
-.Bl -item -width HOMEprofilexxxx
-.It
-.Pa $HOME/.profile
-.It
-.Pa /etc/profile
+.Bl -tag -width "$HOME/.profileXX" -compact
+.It Pa $HOME/.profile
+User's login profile.
+.It Pa /etc/profile
+System login profile.
.El
+.Sh EXIT STATUS
+Errors that are detected by the shell, such as a syntax error, will cause the
+shell to exit with a non-zero exit status.
+If the shell is not an
+interactive shell, the execution of the shell file will be aborted.
+Otherwise
+the shell will return the exit status of the last command executed, or
+if the exit builtin is used with a numeric argument, it will return the
+argument.
.Sh SEE ALSO
.Xr csh 1 ,
.Xr echo 1 ,