4 .TH MHPARAM %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 mhparam \- print nmh profile and context components
13 .RB [ \-component " | " \-nocomponent ]
20 writes the value of the specified profile component to the
21 standard output separated by newlines. If the profile component is not
22 present, the default value (or nothing if there is no default) is printed.
26 is given, then the component name is displayed
27 along with the profile components value. This can be disabled with the
31 If more than one component is specified in the
36 is on by default. If only one component is
37 specified, then the switch
43 is specified, then all components in the mmh profile and context
44 (including comments) are displayed and other arguments are ignored.
48 is specified, then a defined set of internal profile entries are
55 .ta \w'LongEntry:'u+2n
62 % mhparam \-component Path
65 % mhparam AliasFile sendmail
67 sendmail: /usr/sbin/sendmail
69 % mhparam \-nocomponent AliasFile sendmail
73 % mhparam path nonexistent context
80 is also useful in back\-quoted operations:
84 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
89 returns the number of components that were not found.
94 .ta \w'%etcdir%/ExtraBigFileName 'u
95 ^$HOME/.mmh/profile~^The user profile
96 ^or $MMHP~^Rather than the standard profile
97 ^$HOME/.mmh/context~^The user context
98 ^or $MMHC~^Rather than the standard context
101 .SH "PROFILE COMPONENTS"
105 .ta \w'ExtraBigProfileName 'u
106 ^Context:~^To determine the context file
114 .RB ` \-nocomponent "' if only one component is specified"
115 .RB ` \-component "' if more than one component is specified"
116 .RB ` components "' defaults to none"