5 .\" include the -mh macro file
8 .TH MHPARAM %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
10 mhparam \- print nmh profile components
17 \%[-component] \%[-nocomponent]
23 \fIMhparam\fR writes the value of the specified profile component to the
24 standard output separated by newlines. If the profile component is not
25 present, the default value (or nothing if there is no default) is printed.
27 If the switch `\-component' is given, then the component name is displayed
28 along with the profile components value. This can be disabled with the
29 switch `\-nocomponent'.
31 If more than one component is specified in the `components' list, then
32 the switch `\-component' is on by default. If only one component is
33 specified, then the switch `\-nocomponent' is on by default.
35 If `\-all' is specified, then all components in the nmh profile are
36 displayed and other arguments are ignored.
41 .ta \w'AliasFile:'u+2n
49 % mhparam \-component path
52 % mhparam AliasFile rmmproc
56 % mhparam \-nocomponent AliasFile rmmproc
62 \fIMhparam\fR is also useful in back\-quoted operations:
66 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
71 ^$HOME/\&.mh\(ruprofile~^The user profile
75 `\-nocomponent' if only one component is specified
76 `\-component' if more than one component is specified
78 `components' defaults to none