View | Details | Raw Unified | Return to bug 44435
Collapse All | Expand All

(-)sbin/sysctl/sysctl.8 (+7 lines)
Lines 93-98 Link Here
93
listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
93
listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
94
compctl -K listsysctls sysctl
94
compctl -K listsysctls sysctl
95
.Ed
95
.Ed
96
.Pp
97
or in
98
.Nm tcsh ,
99
the following code:
100
.Bd -literal -offset indent
101
complete sysctl 'n/*/`sysctl -Na`/'
102
.Ed
96
.It Fl n
103
.It Fl n
97
Show only variable values, not their names.
104
Show only variable values, not their names.
98
This option is useful for setting shell variables.
105
This option is useful for setting shell variables.

Return to bug 44435