Allow whatnow to accept "l" as an abbreviation for "list", instead of
[mmh] / man / mhparam.man
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH MHPARAM %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 mhparam \- print nmh profile and context components
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B mhparam
11 .RI [ components ]
12 .RB [ \-all ]
13 .RB [ \-component " | " \-nocomponent ]
14 .RB [ \-version ]
15 .RB [ \-help ]
16 .RB [ \-debug ]
17 .ad
18 .SH DESCRIPTION
19 .B mhparam
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.
24 .PP
25 If the switch
26 .B \-component
27 is given, then the component name is displayed
28 along with the profile components value.  This can be disabled with the
29 switch
30 .BR \-nocomponent .
31 .PP
32 If more than one component is specified in the
33 .I components
34 list, then
35 the switch
36 .B \-component
37 is on by default.  If only one component is
38 specified, then the switch
39 .B \-nocomponent
40 is on by default.
41 .PP
42 If
43 .B \-all
44 is specified, then all components in the nmh profile are
45 displayed and other arguments are ignored.
46 .PP
47 .BR mhparam
48 can provide other information, such as
49 the locations of the nmh
50 .I etcdir
51 and
52 .I libdir
53 install directories and all
54 .I proc
55 settings.  The
56 .B \-debug
57 switch displays all such other information available from
58 .BR mhparam .
59 .PP
60 Examples:
61 .PP
62 .RS 5
63 .nf
64 .ta \w'AliasFile:'u+2n
65 % mhparam path
66 Mail
67
68 % mhparam mhlproc
69 %libdir%/mhl
70
71 % mhparam \-component Path
72 Path: Mail
73
74 % mhparam AliasFile rmmproc
75 AliasFile: aliases
76 rmmproc: rmmproc
77
78 % mhparam \-nocomponent AliasFile rmmproc
79 aliases
80 rmmproc
81
82 % mhparam path nonexistent context
83 Path: Mail
84 context: context
85
86 % mhparam etcdir
87 %etcdir%
88
89 % mhparam libdir
90 %libdir%
91 .fi
92 .RE
93 .PP
94 .B mhparam
95 is also useful in back\-quoted operations:
96 .PP
97 .RS 5
98 .nf
99 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
100 .fi
101
102 .SH "EXIT STATUS"
103 .B mhparam
104 returns the number of components that were not found.
105
106 .SH FILES
107 .fc ^ ~
108 .nf
109 .ta \w'%etcdir%/ExtraBigFileName  'u
110 ^$HOME/.mh_profile~^The user profile
111 ^or $MH~^Rather than the standard profile
112 ^<mh-dir>/context~^The user context
113 ^or $MHCONTEXT~^Rather than the standard context
114 .fi
115
116 .SH "PROFILE COMPONENTS"
117 .fc ^ ~
118 .nf
119 .ta 2.4i
120 .ta \w'ExtraBigProfileName  'u
121 ^context:~^To determine the context file
122 .fi
123
124 .SH "SEE ALSO"
125 mh-profile(5)
126
127 .SH DEFAULTS
128 .nf
129 .RB ` \-nocomponent "' if only one component is specified"
130 .RB ` \-component "' if more than one component is specified"
131 .RB ` components "' defaults to none"
132 .fi
133
134 .SH CONTEXT
135 None