1 .TH MHPARAM %manext1% "June 14, 2012" "%nmhversion%"
6 mhparam \- print nmh profile and context components
13 .RB [ \-component " | " \-nocomponent ]
20 writes the value of the specified profile component to the standard
21 output separated by newlines. Component name matching is
22 case-insensitive. If the profile component is not present, the
23 default value (or nothing if there is no default) is printed.
27 is given, then the component name is displayed
28 along with the profile components value. This can be disabled with the
32 If more than one component is specified in the
37 is on by default. If only one component is
38 specified, then the switch
44 is specified, then all components in the nmh profile are
45 displayed and other arguments are ignored.
48 can provide other information, such as
49 the locations of the nmh
53 install directories and all
57 switch displays all such other information available from
64 .ta \w'AliasFile:'u+2n
71 % mhparam \-component Path
74 % mhparam AliasFile rmmproc
78 % mhparam \-nocomponent AliasFile rmmproc
82 % mhparam path nonexistent context
95 is also useful in back\-quoted operations:
99 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
103 returns the number of components that were not found.
107 .ta \w'%etcdir%/ExtraBigFileName 'u
108 ^$HOME/.mh_profile~^The user profile
109 ^or $MH~^Rather than the standard profile
110 ^<mh-dir>/context~^The user context
111 ^or $MHCONTEXT~^Rather than the standard context
113 .SH "PROFILE COMPONENTS"
117 .ta \w'ExtraBigProfileName 'u
118 ^context:~^To determine the context file
124 .RB ` \-nocomponent "' if only one component is specified"
125 .RB ` \-component "' if more than one component is specified"
126 .RB ` components "' defaults to none"