sysctl -p has no space

The man page has examples like sysctl -p filename. Optional arguments
using getopt cannot have a space between the option and argument.
So the correct format is sysctl -pfilename
This commit is contained in:
Craig Small 2012-01-13 23:59:26 +11:00
parent 3c2377ca15
commit 58a6c89cd1

View File

@ -6,7 +6,7 @@
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details." .\" GNU General Public License for more details."
.TH SYSCTL "8" "June 2011" "procps-ng" "System Administration" .TH SYSCTL "8" "Jan 2012" "procps-ng" "System Administration"
.SH NAME .SH NAME
sysctl \- configure kernel parameters at runtime sysctl \- configure kernel parameters at runtime
.SH SYNOPSIS .SH SYNOPSIS
@ -55,7 +55,7 @@ Use this option to not display the values set to stdout.
\fB\-w\fR, \fB\-\-write\fR \fB\-w\fR, \fB\-\-write\fR
Use this option when you want to change a sysctl setting. Use this option when you want to change a sysctl setting.
.TP .TP
\fB\-p\fR, \fB\-\-load\fR[=\fIFILE\fR] \fB\-p\fR[\fIFILE\fR], \fB\-\-load\fR[=\fIFILE\fR]
Load in sysctl settings from the file specified or /etc/sysctl.conf if none Load in sysctl settings from the file specified or /etc/sysctl.conf if none
given. Specifying \- as filename means reading data from standard input. given. Specifying \- as filename means reading data from standard input.
.TP .TP
@ -117,7 +117,7 @@ Display version information and exit.
.br .br
/sbin/sysctl \-w kernel.domainname="example.com" /sbin/sysctl \-w kernel.domainname="example.com"
.br .br
/sbin/sysctl \-p /etc/sysctl.conf /sbin/sysctl \-p/etc/sysctl.conf
.br .br
/sbin/sysctl \-a \-\-pattern forward /sbin/sysctl \-a \-\-pattern forward
.br .br