File: module.1.in

package info (click to toggle)
modules 5.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,036 kB
  • sloc: exp: 79,659; sh: 6,142; tcl: 5,900; makefile: 1,492; ansic: 474; python: 265; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (4983 lines) | stat: -rw-r--r-- 205,202 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "MODULE" "1" "2025-11-25" "5.6.1" "Modules"
.SH NAME
module \- command interface to the Modules package
.SH SYNOPSIS
.sp
\fBmodule\fP [\fIswitches\fP] [\fIsub\-command\fP [\fIsub\-command\-args\fP]]
.SH DESCRIPTION
.sp
\fBmodule\fP is a user interface to the Modules package. The Modules
package provides for the dynamic modification of the user\(aqs environment
via \fImodulefiles\fP\&.
.sp
Each \fImodulefile\fP contains the information needed to configure the
shell for an application. Once the Modules package is initialized, the
environment can be modified on a per\-module basis using the \fBmodule\fP
command which interprets \fImodulefiles\fP\&. Typically \fImodulefiles\fP instruct
the \fBmodule\fP command to alter or set shell environment variables such
as \fBPATH\fP, \fBMANPATH\fP, etc. \fIModulefiles\fP may be shared by many
users on a system and users may have their own set to supplement or replace
the shared \fImodulefiles\fP\&.
.sp
The \fImodulefiles\fP are added to and removed from the current environment
by the user. The environment changes contained in a \fImodulefile\fP can be
summarized through the \fBmodule\fP command as well. If no arguments are
given, a summary of the \fBmodule\fP usage and \fIsub\-commands\fP are shown.
.sp
The action for the \fBmodule\fP command to take is described by the
\fIsub\-command\fP and its associated arguments.
.SS Package Initialization
.sp
The Modules package and the \fBmodule\fP command are initialized when a
shell\-specific initialization script is sourced into the shell. The script
executes the \fBautoinit\fP sub\-command of the \fBmodulecmd.tcl\fP
program located in \fB@libexecdir@\fP for the corresponding shell. The output
of this execution is evaluated by shell which creates the \fBmodule\fP
command as either an alias or function and creates Modules environment
variables.
.sp
During this initialization process, if the Modules environment is found
undefined (when both \fI\%MODULEPATH\fP and \fI\%LOADEDMODULES\fP are
found either unset or empty), the \fBmodulespath\fP and \fBinitrc\fP
configuration files located in \fB@etcdir@\fP are evaluated if present and
following this order. \fBmodulespath\fP file contains the list of
modulepaths to enable during initialization. In this file, the modulepaths are
separated by newline or colon characters. \fBinitrc\fP is a modulefile that
defines during initialization the modulepaths to enable, the modules to load
and the \fBmodule\fP configuration to apply.
.sp
During the initialization process, if the Modules environment is found defined
a \fI\%module refresh\fP is automatically applied to restore in the
current environment all non\-persistent components set by loaded modules.
.sp
The \fBmodule\fP alias or function executes the \fBmodulecmd.tcl\fP
program and has the shell evaluate the command\(aqs output. The first argument to
\fBmodulecmd.tcl\fP specifies the type of shell.
.sp
The initialization scripts are kept in \fB@initdir@/<shell>\fP where
\fI<shell>\fP is the name of the sourcing shell. For example, a C Shell user
sources the \fB@initdir@/csh\fP script. The sh, csh, tcsh, bash, ksh,
zsh, fish and cmd shells are supported by \fBmodulecmd.tcl\fP\&. In addition,
python, perl, ruby, tcl, cmake, r and lisp \(dqshells\(dq are supported which
writes the environment changes to stdout as python, perl, ruby, tcl, lisp,
r or cmake code.
.sp
Initialization may also be performed by directly calling the
\fBautoinit\fP sub\-command of the \fBmodulecmd.tcl\fP program.
.sp
A \fBml\fP alias or function may also be defined at initialization time
if enabled (see \fI\%MODULES_ML\fP section). \fBml\fP is a handy
frontend leveraging all \fBmodule\fP command capabilities with less
character typed. See \fI\%ml\fP for detailed information.
.sp
A \fBmogui\fP alias or function may also be defined at initialization
time if \fBmogui\-cmd\fP command is found in \fBPATH\fP\&.
\fBmogui\fP is the Graphical User Interface for Modules. Environment
changes performed in the GUI is applied onto the shell session that executed
\fBmogui\fP\&.
.SS Examples of initialization
.sp
C Shell initialization (and derivatives):
.INDENT 0.0
.INDENT 3.5
.sp
.EX
source @initdir@/csh
module load modulefile modulefile ...
.EE
.UNINDENT
.UNINDENT
.sp
Bourne Shell (sh) (and derivatives):
.INDENT 0.0
.INDENT 3.5
.sp
.EX
\&. @initdir@/sh
module load modulefile modulefile ...
.EE
.UNINDENT
.UNINDENT
.sp
PowerShell (pwsh):
.INDENT 0.0
.INDENT 3.5
.sp
.EX
\&. @initdir@/pwsh.ps1
envmodule load modulefile modulefile ...
.EE
.UNINDENT
.UNINDENT
.sp
Perl:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
require \(dq@initdir@/perl.pm\(dq;
&module(\(aqload\(aq, \(aqmodulefile\(aq, \(aqmodulefile\(aq, \(aq...\(aq);
.EE
.UNINDENT
.UNINDENT
.sp
Python:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
import os
exec(open(\(dq@initdir@/python.py\(dq).read(), globals())
module(\(dqload\(dq, \(dqmodulefile\(dq, \(dqmodulefile\(dq, \(dq...\(dq)
.EE
.UNINDENT
.UNINDENT
.sp
Ruby:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
require \(aq@initdir@/ruby.rb\(aq
ENVModule.module(\(aqload\(aq, \(aqmodulefile\(aq, \(aqmodulefile\(aq, \(aq...\(aq)
.EE
.UNINDENT
.UNINDENT
.sp
Bourne Shell (sh) (and derivatives) with \fBautoinit\fP sub\-command:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
eval \(dq$(@libexecdir@/modulecmd.tcl sh autoinit)\(dq
.EE
.UNINDENT
.UNINDENT
.SS Modulecmd startup
.sp
Upon invocation \fBmodulecmd.tcl\fP sources a site\-specific configuration
script if it exists. Siteconfig script is a Tcl script located at
\fB@etcdir@/siteconfig.tcl\fP\&. It enables to supersede any global variable or
procedure definition of \fBmodulecmd.tcl\fP\&. See \fI\%Site\-specific configuration\fP for detailed information.
.sp
Afterward, \fBmodulecmd.tcl\fP sources rc files which contain global,
user and \fImodulefile\fP specific setups. These files are interpreted as
\fImodulefiles\fP\&. See \fI\%modulefile\fP for detailed information.
.sp
Upon invocation of \fBmodulecmd.tcl\fP module run\-command files are sourced
in the following order:
.INDENT 0.0
.IP 1. 3
Global RC file(s) as specified by \fI\%MODULERCFILE\fP variable or
\fB@etcdir@/rc\fP\&. If a path element in \fI\%MODULERCFILE\fP points to a
directory, the \fBmodulerc\fP file in this directory is used as a global
RC file.
.IP 2. 3
User specific module RC file \fB$HOME/.modulerc\fP
.IP 3. 3
All \fB\&.modulerc\fP and \fB\&.version\fP files found during modulefile
seeking.
.UNINDENT
.sp
These module run\-command files must begins like \fImodulefiles\fP with the
\fB#%Module\fP file signature, also called the Modules magic cookie. A version
number may be placed after this string. The version number reflects the
minimum version of \fBmodulecmd.tcl\fP required to interpret the run\-command
file. If a version number doesn\(aqt exist, then \fBmodulecmd.tcl\fP will
assume the run\-command file is compatible. Files without the magic cookie or
with a version number greater than the current version of
\fBmodulecmd.tcl\fP will not be interpreted and an error is reported. Such
error does not abort the whole \fBmodule\fP evaluation. If the
\fI\%mcookie_version_check\fP configuration is disabled the version number
set is not checked.
.sp
\fBNOTE:\fP
.INDENT 0.0
.INDENT 3.5
Run\-command files are intended to set parameters for modulefiles,
not to configure the \fBmodule\fP command itself.
.UNINDENT
.UNINDENT
.SS Command line switches
.sp
The \fBmodule\fP command accepts command line switches as its first
parameter. These may be used to control output format of all information
displayed and the \fBmodule\fP behavior in case of locating and
interpreting \fImodulefiles\fP\&.
.sp
All switches may be entered either in short or long notation. The following
switches are accepted:
.INDENT 0.0
.TP
.B \-\-all, \-a
Include hidden modules in search performed with \fI\%avail\fP,
\fI\%aliases\fP, \fI\%list\fP, \fI\%lint\fP, \fI\%savelist\fP,
\fI\%search\fP, \fI\%spider\fP or \fI\%whatis\fP sub\-commands.
Hard\-hidden modules are not affected by this option.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-auto
Enable automated module handling mode on sub\-commands that load or unload
modulefiles. See also \fI\%MODULES_AUTO_HANDLING\fP section.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-color=<WHEN>
Colorize the output. \fIWHEN\fP defaults to \fBalways\fP or can be \fBnever\fP or
\fBauto\fP\&. See also \fI\%MODULES_COLOR\fP section.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-contains, \-C
On \fI\%avail\fP, \fI\%list\fP, \fI\%savelist\fP and \fI\%spider\fP
sub\-commands, return modules or collections whose fully qualified name
contains search query string.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-debug, \-D, \-DD
Debug mode. Causes \fBmodule\fP to print debugging messages about its
progress. Multiple \fI\%\-D\fP options increase the debug verbosity. The
maximum is 2.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-default, \-d
On \fI\%avail\fP and \fI\%spider\fP sub\-commands, display only the
default version of each module name. Default version is the explicitly set
default version or also the implicit default version if the configuration
option \fI\%implicit_default\fP is enabled (see \fI\%Locating Modulefiles\fP section in the \fI\%modulefile\fP man page for further details
on implicit default version).
.UNINDENT
.INDENT 0.0
.TP
.B \-\-dumpname
Report the name of the current implementation of the \fBmodule\fP
command. This option returns \fBModules\fP for this implementation. The command
then terminates without further processing.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-force, \-f
On \fI\%load\fP, \fI\%unload\fP, \fI\%switch\fP, \fI\%load\-any\fP,
\fI\%try\-load\fP, \fI\%mod\-to\-sh\fP and \fI\%source\fP sub\-commands
by\-pass any unsatisfied modulefile constraint corresponding to the declared
\fI\%prereq\fP, \fI\%via requirement\fP and
\fI\%conflict\fP\&. Which means for instance that a \fImodulefile\fP will be
loaded even if it comes in conflict with another loaded \fImodulefile\fP or that
a \fImodulefile\fP will be unloaded even if it is a requirement of another
\fImodulefile\fP\&.
.sp
On \fI\%load\fP, \fBml\fP, \fI\%mod\-to\-sh\fP, \fI\%purge\fP,
\fI\%reload\fP, \fI\%switch\fP, \fI\%try\-load\fP and \fI\%unload\fP
sub\-commands applies \fIcontinue on error\fP behavior when an error occurs even
if \fI\%abort_on_error\fP option is enabled.
.sp
On \fBml\fP, \fI\%purge\fP, \fI\%reload\fP, \fI\%reset\fP,
\fI\%restore\fP, \fI\%stash\fP, \fI\%stashpop\fP, \fI\%switch\fP and
\fI\%unload\fP sub\-commands, unloads modulefile anyway even if an
evaluation error occurs.
.sp
On \fI\%clear\fP sub\-command, skip the confirmation dialog and proceed.
.sp
On \fI\%purge\fP sub\-command also unload \fI\%sticky modules\fP and modulefiles
that are depended by non\-unloadable modules.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-help, \-h
Give some helpful usage information, and terminates the command.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-icase, \-i
Match module specification arguments in a case insensitive manner.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-ignore\-cache
Ignore module cache.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-ignore\-user\-rc
Skip evaluation of user\-specific module rc file (\fB$HOME/.modulerc\fP).
.UNINDENT
.INDENT 0.0
.TP
.B \-\-indepth
On \fI\%avail\fP and \fI\%spider\fP sub\-commands, include in search
results the matching modulefiles and directories and recursively the
modulefiles and directories contained in these matching directories.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-json, \-j
Display \fI\%avail\fP, \fI\%list\fP, \fI\%savelist\fP,
\fI\%search\fP, \fI\%spider\fP, \fI\%stashlist\fP and \fI\%whatis\fP
output in JSON format.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-latest, \-L
On \fI\%avail\fP and \fI\%spider\fP sub\-commands, display only the
highest numerically sorted version of each module name (see \fI\%Locating Modulefiles\fP section in the \fI\%modulefile\fP man page).
.UNINDENT
.INDENT 0.0
.TP
.B \-\-long, \-l
Display \fI\%avail\fP, \fI\%list\fP, \fI\%savelist\fP, \fI\%spider\fP
and \fI\%stashlist\fP output in long format.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-auto
Disable automated module handling mode on sub\-commands that load or unload
modulefiles. See also \fI\%MODULES_AUTO_HANDLING\fP section.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-indepth
On \fI\%avail\fP and \fI\%spider\fP sub\-commands, limit search results to
the matching modulefiles and directories found at the depth level expressed
by the search query. Thus modulefiles contained in directories part of the
result are excluded.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-pager
Do not pipe message output into a pager.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-redirect
Do not send message output to stdout. Keep it on stderr.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-output=LIST, \-o LIST
Define the content to report in addition to module names. This option is
supported by \fI\%avail\fP, \fI\%list\fP and \fI\%spider\fP
sub\-commands on their regular or terse output modes. Accepted values are a
\fILIST\fP of elements to report separated by colon character (\fB:\fP). The order
of the elements in \fILIST\fP does not matter.
.sp
Accepted elements in \fILIST\fP for \fI\%avail\fP and \fI\%spider\fP
sub\-command are: \fImodulepath\fP, \fIalias\fP, \fIprovided\-alias\fP, \fIdirwsym\fP,
\fIindesym\fP, \fIsym\fP, \fItag\fP, \fIkey\fP, \fIhidden\fP, \fIvariant\fP, \fIvariantifspec\fP and
\fIvia\fP\&. \fIvia\fP element is not accepted on terse output mode.
.sp
Accepted elements in \fILIST\fP for \fI\%list\fP sub\-command are: \fIheader\fP,
\fIidx\fP, \fIvariant\fP, \fIalias\fP, \fIindesym\fP, \fIsym\fP, \fItag\fP, \fIhidden\fP and \fIkey\fP\&.
.sp
The order of the elements in \fILIST\fP does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
\fILIST\fP may be prefixed by \fB+\fP or \fB\-\fP character to indicate respectively
to append it to or subtract it from current configuration option value.
.sp
See also \fI\%MODULES_AVAIL_OUTPUT\fP, \fI\%MODULES_LIST_OUTPUT\fP and
\fI\%MODULES_SPIDER_OUTPUT\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-paginate
Pipe all message output into \fBless\fP (or if set, to the command
referred in \fI\%MODULES_PAGER\fP variable) if error output stream is a
terminal. See also \fI\%MODULES_PAGER\fP section.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-redirect
Send message output to stdout instead of stderr. Only supported on sh, bash,
ksh, zsh and fish shells.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-silent, \-s
Turn off error, warning and informational messages. \fBmodule\fP command
output result is not affected by silent mode.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-starts\-with, \-S
On \fI\%avail\fP, \fI\%list\fP, \fI\%savelist\fP and \fI\%spider\fP
sub\-commands, return modules or collections whose name starts with search
query string.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-tag=LIST
On \fI\%load\fP, \fI\%load\-any\fP, \fI\%switch\fP and
\fI\%try\-load\fP sub\-commands, apply LIST of module tags to the loading
\fImodulefile\fP\&. \fILIST\fP corresponds to the concatenation of multiple tags
separated by colon character (\fB:\fP). \fILIST\fP should not contain tags
inherited from \fImodulefile\fP state or from other modulefile commands. If
module is already loaded, tags from \fILIST\fP are added to the list of tags
already applied to this module.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-terse, \-t
Display \fI\%avail\fP, \fI\%list\fP, \fI\%savelist\fP, \fI\%spider\fP
and \fI\%stashlist\fP output in short format.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-timer
Prints at the end of the output an evaluation of the total execution time of
the \fBmodule\fP command. When mixed with a single or multiple
\fI\%\-\-debug\fP options, replaces regular debug messages by reports of the
execution time of every internal procedure calls.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-trace, \-T
Trace mode. Report details on module searches, resolutions, selections and
evaluations in addition to printing verbose messages.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-verbose, \-v, \-vv
Enable verbose messages during \fBmodule\fP command execution. Multiple
\fI\%\-v\fP options increase the verbosity level. The maximum is 2.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-version, \-V
Lists the current version of the \fBmodule\fP command. The command then
terminates without further processing.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-width=COLS, \-w COLS
Set the width of the output to \fICOLS\fP columns. See also
\fI\%MODULES_TERM_WIDTH\fP section.
.UNINDENT
.SS Module Sub\-Commands
.INDENT 0.0
.TP
.B add [options] modulefile...
See \fI\%load\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B add\-any [options] modulefile...
See \fI\%load\-any\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B aliases [\-a]
List all available symbolic version\-names and aliases in the current
\fI\%MODULEPATH\fP\&. All directories in the \fI\%MODULEPATH\fP are
recursively searched in the same manner than for the \fI\%avail\fP
sub\-command. Only the symbolic version\-names and aliases found in the search
are displayed.
.UNINDENT
.INDENT 0.0
.TP
.B append\-path [options] variable value...
Append \fIvalue\fP to environment \fIvariable\fP\&. The \fIvariable\fP is a colon, or
\fIdelimiter\fP, separated list. See \fI\%append\-path\fP in the
\fI\%modulefile\fP man page for \fIoptions\fP description and further
explanation.
.sp
When \fI\%append\-path\fP is called as a module sub\-command, the reference
counter variable, which denotes the number of times \fIvalue\fP has been added to
environment \fIvariable\fP, is not updated unless if the \fB\-\-duplicates\fP option
is set.
.UNINDENT
.INDENT 0.0
.TP
.B apropos [\-a] [\-j] string
See \fI\%search\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B avail [\-d|\-L] [\-t|\-l|\-j] [\-a] [\-o LIST] [\-S|\-C] [\-\-indepth|\-\-no\-indepth] [pattern...]
List all available \fImodulefiles\fP in the current \fI\%MODULEPATH\fP\&. All
directories in the \fI\%MODULEPATH\fP are recursively searched for files
containing the Modules magic cookie. If a \fIpattern\fP argument is given, then
each directory in the \fI\%MODULEPATH\fP is searched for \fImodulefiles\fP
whose pathname, symbolic version\-name or alias match \fIpattern\fP in a case
insensitive manner by default. \fIpattern\fP may contain wildcard characters.
Multiple versions of an application can be supported by creating a
subdirectory for the application containing \fImodulefiles\fP for each version.
.sp
Symbolic version\-names and aliases found in the search are displayed in the
result of this sub\-command. Symbolic version\-names are displayed next to
the \fImodulefile\fP they are assigned to within parenthesis. Aliases are listed
in the \fI\%MODULEPATH\fP section where they have been defined. To
distinguish aliases from \fImodulefiles\fP a \fB@\fP symbol is added within
parenthesis next to their name. Aliases defined through a global or user
specific module RC file are listed under the \fBglobal/user modulerc\fP
section.
.sp
When colored output is enabled and a specific graphical rendition is defined
for module \fIdefault\fP version, the \fBdefault\fP symbol is omitted and instead
the defined graphical rendition is applied to the relative modulefile. When
colored output is enabled and a specific graphical rendition is defined for
module alias, the \fB@\fP symbol is omitted. The defined graphical rendition
applies to the module alias name. See \fI\%MODULES_COLOR\fP and
\fI\%MODULES_COLORS\fP sections for details on colored output.
.sp
Module tags applying to the available \fImodulefiles\fP returned by the
\fI\%avail\fP sub\-command are reported along the module name they are
associated to (see \fI\%Module tags\fP section).
.sp
Module variants and their available values may be reported along the module
name they belong to (see \fI\%Module variants\fP section) if defined in avail
output configuration option (see \fI\%\-\-output\fP/\fI\%\-o\fP option). The
\fI\%Extra match search\fP process is triggered to collect variant
information.
.sp
A \fIKey\fP section is added at the end of the output in case some elements are
reported in parentheses or chevrons along module name or if some graphical
rendition is made over some output elements. This \fIKey\fP section gives hints
on the meaning of such elements.
.sp
The parameter \fIpattern\fP may also refer to a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If \fIpattern\fP contains variant specification or \fI\%Extra specifier\fP, the
\fI\%Extra match search\fP process is triggered to collect command information
used in modulefiles. Modules are included in results only if they match
\fIpattern\fP variant specification and extra specifier. \fIpattern\fP may be a bare
variant specification or extra specifier without mention of a module name.
.sp
When several \fIpatterns\fP are provided all modulefiles matching at least one of
these \fIpatterns\fP are listed.
.UNINDENT
.INDENT 0.0
.TP
.B cachebuild [modulepath...]
Build module cache file for designated modulepaths. If no argument is
provided cache file is built for every modulepath currently enabled. Cache
file creation is skipped for modulepaths where user cannot write in.
.sp
The name and content of every readable modulefiles and rc files are recorded
into cache file. Also last modification time of modulefiles and invalid
modulefile error messages are recorded. With all these information, the sole
cache file is evaluated to know what is available within modulepath.
.sp
See \fI\%Module cache\fP section for more details on module cache mechanism.
.UNINDENT
.INDENT 0.0
.TP
.B cacheclear
Delete module cache file in every modulepath currently enabled. If user
cannot write in a modulepath directory, cache file deletion is skipped for
this modulepath.
.sp
See \fI\%Module cache\fP section for more details on module cache mechanism.
.UNINDENT
.INDENT 0.0
.TP
.B clear [\-f]
Force the Modules package to believe that no modules are currently loaded. A
confirmation is requested if command\-line switch \fI\%\-f\fP (or
\fI\%\-\-force\fP) is not passed. Typed confirmation should equal to \fByes\fP
or \fBy\fP in order to proceed.
.UNINDENT
.INDENT 0.0
.TP
.B config [\-\-dump\-state|name [value]|\-\-reset name]
Gets or sets \fBmodulecmd.tcl\fP options. Reports the currently set value
of passed option \fIname\fP or all existing options if no \fIname\fP passed. If a
\fIname\fP and a \fIvalue\fP are provided, the value of option \fIname\fP is set to
\fIvalue\fP\&. If command\-line switch \fB\-\-reset\fP is passed in addition to a
\fIname\fP, overridden value for option \fIname\fP is cleared.
.sp
When a reported option value differs from default value a mention is added
to indicate whether the overridden value is coming from a command\-line switch
(\fBcmd\-line\fP) or from an environment variable (\fBenv\-var\fP). When a reported
option value is locked and cannot be altered a (\fBlocked\fP) mention is added.
.sp
If no value is currently set for an option \fIname\fP, the mention \fB<undef>\fP is
reported.
.sp
For options whose value is a colon\-separated list, \fIvalue\fP may be prefixed by
\fB+\fP or \fB\-\fP character. It indicates respectively to append it to or
subtract it from current option value.
.sp
When command\-line switch \fB\-\-dump\-state\fP is passed, current
\fBmodulecmd.tcl\fP state and Modules\-related environment variables are
reported in addition to currently set \fBmodulecmd.tcl\fP options.
.sp
Existing option \fInames\fP are:
.INDENT 7.0
.TP
.B abort_on_error
List of module sub\-commands that abort evaluation sequence when an error is
raised by an evaluated module. Evaluations already performed are withdrawn
and remaining modules to evaluate are skipped.
.sp
This configuration option can be changed at installation time with
\fI\%\-\-with\-abort\-on\-error\fP option. The
\fI\%MODULES_ABORT_ON_ERROR\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_ABORT_ON_ERROR\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B advanced_version_spec
Advanced module version specification to finely select modulefiles.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-advanced\-version\-spec\fP
option. The \fI\%MODULES_ADVANCED_VERSION_SPEC\fP environment variable is
defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. See \fI\%MODULES_ADVANCED_VERSION_SPEC\fP
description for details.
.UNINDENT
.INDENT 7.0
.TP
.B auto_handling
Automated module handling mode.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-auto\-handling\fP option. The
\fI\%MODULES_AUTO_HANDLING\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-auto\fP and \fI\%\-\-no\-auto\fP
command line switches change the value of this configuration option. See
\fI\%MODULES_AUTO_HANDLING\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B avail_indepth
\fI\%avail\fP sub\-command in depth search mode.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-avail\-indepth\fP option. The
\fI\%MODULES_AVAIL_INDEPTH\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-indepth\fP and \fI\%\-\-no\-indepth\fP
command line switches change the value of this configuration option. See
\fI\%MODULES_AVAIL_INDEPTH\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B avail_output
Content to report in addition to module names on \fI\%avail\fP sub\-command
regular output mode.
.sp
Default value is \fBmodulepath:alias:dirwsym:sym:tag:variantifspec:key\fP\&. It
can be changed at installation time with \fI\%\-\-with\-avail\-output\fP
option. The \fI\%MODULES_AVAIL_OUTPUT\fP environment variable is defined
by \fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command line switches
change the value of this configuration option. See
\fI\%MODULES_AVAIL_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B avail_terse_output
Content to report in addition to module names on \fI\%avail\fP sub\-command
terse output mode.
.sp
Default value is \fBmodulepath:alias:dirwsym:sym:tag:variantifspec\fP\&. It can
be changed at installation time with \fI\%\-\-with\-avail\-terse\-output\fP
option. The \fI\%MODULES_AVAIL_TERSE_OUTPUT\fP environment variable is
defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches change the value of this configuration option. See
\fI\%MODULES_AVAIL_TERSE_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B cache_buffer_bytes
Size of the buffer used when reading or writing cache files.
.sp
Default value is \fB32768\fP\&. Values between 4096 and 1000000 are accepted.
The \fI\%MODULES_CACHE_BUFFER_BYTES\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value.
.UNINDENT
.INDENT 7.0
.TP
.B cache_expiry_secs
Number of seconds a cache file is considered valid after being generated.
.sp
Default value is \fB0\fP\&. Values between 0 and 31536000 are accepted.
The \fI\%MODULES_CACHE_EXPIRY_SECS\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value.
.UNINDENT
.INDENT 7.0
.TP
.B collection_pin_version
Register exact modulefile version in collection.
.sp
Default value is \fB0\fP\&. The \fI\%MODULES_COLLECTION_PIN_VERSION\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_COLLECTION_PIN_VERSION\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B collection_pin_tag
Register full tag list applying to modulefiles in collection.
.sp
Default value is \fB0\fP\&. The \fI\%MODULES_COLLECTION_PIN_TAG\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_COLLECTION_PIN_TAG\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B collection_target
Collection target which is valid for current system.
.sp
This configuration option is unset by default. The
\fI\%MODULES_COLLECTION_TARGET\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_COLLECTION_TARGET\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B color
Colored output mode.
.sp
Default value is \fBauto\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-color\fP option. The
\fI\%MODULES_COLOR\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-color\fP command line switches changes the
value of this configuration option. See \fI\%MODULES_COLOR\fP description
for details.
.UNINDENT
.INDENT 7.0
.TP
.B colors
Chosen colors to highlight output items.
.sp
Default value is \fBhi=1:db=2:tr=2:se=2:er=91:wa=93:me=95:in=94:mp=1;94:di=94:al=96:va=93:sy=95:de=4:cm=92:aL=100:L=90;47:H=2:F=41:nF=31;43:S=46:sS=44:kL=30;48;5;109:W=30;43\fP\&.
It can be changed at installation time with
\fI\%\-\-with\-dark\-background\-colors\fP or
\fI\%\-\-with\-light\-background\-colors\fP options in conjunction with
\fI\%\-\-with\-terminal\-background\fP\&. The \fI\%MODULES_COLORS\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_COLORS\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B conflict_unload
Automated unload of conflicting modules when loading a module. This
mechanism is part of the \fI\%automated module handling
mode\fP and also requires enablement of
\fI\%auto_handling\fP configuration option.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-conflict\-unload\fP option. The
\fI\%MODULES_CONFLICT_UNLOAD\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_CONFLICT_UNLOAD\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B contact
Modulefile contact address.
.sp
Default value is \fBroot@localhost\fP\&. The \fI\%MODULECONTACT\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. See \fI\%MODULECONTACT\fP
description for details.
.UNINDENT
.INDENT 7.0
.TP
.B extended_default
Allow partial module version specification.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-extended\-default\fP option. The
\fI\%MODULES_EXTENDED_DEFAULT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_EXTENDED_DEFAULT\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B editor
Text editor command to open modulefile with through \fI\%edit\fP
sub\-command.
.sp
Default value is \fBvi\fP\&. It can be changed at installation time with
\fI\%\-\-with\-editor\fP option. The \fI\%MODULES_EDITOR\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. See \fI\%MODULES_EDITOR\fP
description for details.
.UNINDENT
.INDENT 7.0
.TP
.B extra_siteconfig
Additional site\-specific configuration script location. See
\fI\%Site\-specific configuration\fP section for details.
.sp
This configuration option is unset by default. The
\fI\%MODULES_SITECONFIG\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_SITECONFIG\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B hide_auto_loaded
Tag automatically loaded modules \fBhidden\-loaded\fP
.sp
Default is \fB0\fP\&. The \fI\%MODULES_HIDE_AUTO_LOADED\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value.
.UNINDENT
.INDENT 7.0
.TP
.B home
Location of Modules package main directory.
.sp
Default value is \fB@prefix@\fP\&. It can be changed at installation time with
\fI\%\-\-prefix\fP or \fI\%\-\-with\-moduleshome\fP options. The
\fI\%MODULESHOME\fP environment variable is defined by \fI\%config\fP
sub\-command when changing this configuration option from its default value.
See \fI\%MODULESHOME\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B icase
Enable case insensitive match.
.sp
Default value is \fBsearch\fP\&. It can be changed at installation time with
\fI\%\-\-with\-icase\fP option. The \fI\%MODULES_ICASE\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. The
\fI\%\-\-icase\fP/\fI\%\-i\fP command line switches change the value of
this configuration option. See \fI\%MODULES_ICASE\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B ignore_cache
Ignore module cache.
.sp
Default is \fB0\fP\&. The \fI\%MODULES_IGNORE_CACHE\fP environment variable
is defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. The \fI\%\-\-ignore\-cache\fP command line
switch changes the value of this configuration option.
.UNINDENT
.INDENT 7.0
.TP
.B ignore_user_rc
Skip evaluation of user\-specific module rc file (\fB$HOME/.modulerc\fP).
.sp
Default is \fB0\fP\&. The \fI\%MODULES_IGNORE_USER_RC\fP environment variable
is defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. The \fI\%\-\-ignore\-user\-rc\fP command line
switch changes the value of this configuration option.
.UNINDENT
.INDENT 7.0
.TP
.B ignored_dirs
Directories ignored when looking for modulefiles.
.sp
Default value is \fBCVS RCS SCCS .svn .git .SYNC .sos\fP\&. The value of this
option cannot be altered.
.UNINDENT
.INDENT 7.0
.TP
.B implicit_default
Set an implicit default version for modules.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-implicit\-default\fP option. The
\fI\%MODULES_IMPLICIT_DEFAULT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_IMPLICIT_DEFAULT\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B implicit_requirement
Implicitly define a requirement onto modules specified on \fI\%module\fP
commands in modulefile.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-implicit\-requirement\fP
option. The \fI\%MODULES_IMPLICIT_REQUIREMENT\fP environment variable is
defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. See \fI\%MODULES_IMPLICIT_REQUIREMENT\fP
description for details.
.UNINDENT
.INDENT 7.0
.TP
.B list_output
Content to report in addition to module names on \fI\%list\fP sub\-command
regular output mode.
.sp
Default value is \fBheader:idx:variant:sym:tag:key\fP\&. It can be changed at
installation time with \fI\%\-\-with\-list\-output\fP option. The
\fI\%MODULES_LIST_OUTPUT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command line switches
change the value of this configuration option. See
\fI\%MODULES_LIST_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B list_terse_output
Content to report in addition to module names on \fI\%list\fP sub\-command
terse output mode.
.sp
Default value is \fBheader\fP\&. It can be changed at installation time with
\fI\%\-\-with\-list\-terse\-output\fP option. The
\fI\%MODULES_LIST_TERSE_OUTPUT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command line switches
change the value of this configuration option. See
\fI\%MODULES_LIST_TERSE_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B locked_configs
Configuration options that cannot be superseded. All options referred in
\fI\%locked_configs\fP value are locked, thus their value cannot be
altered.
.sp
This configuration option is set to an empty value by default. It can be
changed at installation time with \fI\%\-\-with\-locked\-configs\fP option.
The value of this option cannot be altered.
.UNINDENT
.INDENT 7.0
.TP
.B logged_events
List of the events to log.
.sp
This configuration option is set to an empty value by default. It can be
changed at installation time with \fI\%\-\-with\-logged\-events\fP option.
The \fI\%MODULES_LOGGED_EVENTS\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_LOGGED_EVENTS\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B logger
Command to log messages.
.sp
Default value is \fBlogger \-t modules\fP\&. It can be changed at installation
time with \fI\%\-\-with\-logger\fP and \fI\%\-\-with\-logger\-opts\fP
options. The \fI\%MODULES_LOGGER\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_LOGGER\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B mcookie_check
Defines if the Modules magic cookie (i.e., \fB#%Module\fP file signature)
should be checked to determine if a file is a modulefile.
.sp
Default value is \fBalways\fP\&. The \fI\%MODULES_MCOOKIE_CHECK\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. See
\fI\%MODULES_MCOOKIE_CHECK\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B mcookie_version_check
Defines if the version set in the Modules magic cookie used in modulefile
should be checked against the version of \fBmodulecmd.tcl\fP to determine
if the modulefile could be evaluated or not.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-mcookie\-version\-check\fP
option. The \fI\%MODULES_MCOOKIE_VERSION_CHECK\fP environment variable is
defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. See \fI\%MODULES_MCOOKIE_VERSION_CHECK\fP
description for details.
.UNINDENT
.INDENT 7.0
.TP
.B ml
Define \fBml\fP command at initialization time.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-ml\fP option. The \fI\%MODULES_ML\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_ML\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B nearly_forbidden_days
Set the number of days a module should be considered \fInearly forbidden\fP
prior reaching its expiry date.
.sp
Default value is \fB14\fP\&. It can be changed at installation time with
\fI\%\-\-with\-nearly\-forbidden\-days\fP option. The
\fI\%MODULES_NEARLY_FORBIDDEN_DAYS\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_NEARLY_FORBIDDEN_DAYS\fP description
for details.
.UNINDENT
.INDENT 7.0
.TP
.B pager
Text viewer to paginate message output.
.sp
Default value is \fBless \-eFKRX\fP\&. It can be changed at installation time
with \fI\%\-\-with\-pager\fP and \fI\%\-\-with\-pager\-opts\fP options. The
\fI\%MODULES_PAGER\fP environment variable is defined by \fI\%config\fP
sub\-command when changing this configuration option from its default value.
See \fI\%MODULES_PAGER\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B protected_envvars
Prevents any modification of listed environment variables (colon \fI:\fP
separator).
.sp
This configuration option is unset by default. The
\fI\%MODULES_PROTECTED_ENVVARS\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_PROTECTED_ENVVARS\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B quarantine_support
Defines if code for quarantine mechanism support should be generated in
\fBmodule\fP shell function definition.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-quarantine\-support\fP option. The
\fI\%MODULES_QUARANTINE_SUPPORT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_QUARANTINE_SUPPORT\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B rcfile
Location of global run\-command file(s).
.sp
This configuration option is unset by default. The \fI\%MODULERCFILE\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULERCFILE\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B redirect_output
Control whether or not the output of module command should be redirected
from stderr to stdout.
.sp
Default value is \fB1\fP\&. The \fI\%MODULES_REDIRECT_OUTPUT\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. The \fI\%\-\-redirect\fP and
\fI\%\-\-no\-redirect\fP command line switches change the value of this
configuration option. See \fI\%MODULES_REDIRECT_OUTPUT\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B require_via
Consider loaded module enabling a modulepath a requirement for loaded
modules stored in this modulepath.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-require\-via\fP option. The \fI\%MODULES_REQUIRE_VIA\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_REQUIRE_VIA\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B reset_target_state
Control behavior of \fI\%reset\fP sub\-command. Whether environment should
be purged (\fB__purge__\fP), initial environment (\fB__init__\fP) or a named
collection (any other value) should restored.
.sp
Default value is \fB__init__\fP\&. The \fI\%MODULES_RESET_TARGET_STATE\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_RESET_TARGET_STATE\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B run_quarantine
Environment variables to indirectly pass to \fBmodulecmd.tcl\fP\&.
.sp
This configuration option is set to an empty value by default. It can be
changed at installation time with \fI\%\-\-with\-quarantine\-vars\fP option
that sets \fI\%MODULES_RUN_QUARANTINE\fP\&. This environment variable is
also defined by \fI\%config\fP sub\-command when changing this
configuration option. See \fI\%MODULES_RUN_QUARANTINE\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B search_match
Module search match style.
.sp
Default value is \fBstarts_with\fP\&. It can be changed at installation time
with \fI\%\-\-with\-search\-match\fP option. The
\fI\%MODULES_SEARCH_MATCH\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-contains\fP and \fI\%\-\-starts\-with\fP
command line switches change the value of this configuration option. See
\fI\%MODULES_SEARCH_MATCH\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B set_shell_startup
Ensure module command definition by setting shell startup file.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-set\-shell\-startup\fP option. The
\fI\%MODULES_SET_SHELL_STARTUP\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_SET_SHELL_STARTUP\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B shells_with_ksh_fpath
Ensure module command is defined in ksh when it is started as a sub\-shell
from the listed shells.
.sp
This configuration option is set to an empty value by default. The
\fI\%MODULES_SHELLS_WITH_KSH_FPATH\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_SHELLS_WITH_KSH_FPATH\fP description
for details.
.UNINDENT
.INDENT 7.0
.TP
.B silent_shell_debug
Disablement of shell debugging property for the module command. Also defines
if code to silence shell debugging property should be generated in
\fBmodule\fP shell function definition.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-silent\-shell\-debug\-support\fP option. The
\fI\%MODULES_SILENT_SHELL_DEBUG\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_SILENT_SHELL_DEBUG\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B siteconfig
Primary site\-specific configuration script location. See
\fI\%Site\-specific configuration\fP section for details.
.sp
Default value is \fB@etcdir@/siteconfig.tcl\fP\&. It can be changed at installation
time with \fI\%\-\-prefix\fP or \fI\%\-\-etcdir\fP options. The value of
this option cannot be altered.
.UNINDENT
.INDENT 7.0
.TP
.B source_cache
Cache content of files evaluated in modulefile through \fBsource(n)\fP
Tcl command.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-source\-cache\fP option. The \fI\%MODULES_SOURCE_CACHE\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. See
\fI\%MODULES_SOURCE_CACHE\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B spider_indepth
\fI\%spider\fP sub\-command in depth search mode.
.sp
Default value is \fB1\fP\&. It can be changed at installation time with
\fI\%\-\-disable\-spider\-indepth\fP option. The
\fI\%MODULES_SPIDER_INDEPTH\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-indepth\fP and \fI\%\-\-no\-indepth\fP
command line switches change the value of this configuration option. See
\fI\%MODULES_SPIDER_INDEPTH\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B spider_output
Content to report in addition to module names on \fI\%spider\fP
sub\-command regular output mode.
.sp
Default value is \fBmodulepath:alias:dirwsym:sym:tag:variantifspec:via:key\fP\&.
It can be changed at installation time with \fI\%\-\-with\-spider\-output\fP
option. The \fI\%MODULES_SPIDER_OUTPUT\fP environment variable is defined
by \fI\%config\fP sub\-command when changing this configuration option from
its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command line switches
change the value of this configuration option. See
\fI\%MODULES_SPIDER_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B spider_terse_output
Content to report in addition to module names on \fI\%spider\fP
sub\-command terse output mode.
.sp
Default value is \fBmodulepath:alias:dirwsym:sym:tag:variantifspec\fP\&. It can
be changed at installation time with \fI\%\-\-with\-spider\-terse\-output\fP
option. The \fI\%MODULES_SPIDER_TERSE_OUTPUT\fP environment variable is
defined by \fI\%config\fP sub\-command when changing this configuration
option from its default value. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches change the value of this configuration option. See
\fI\%MODULES_SPIDER_TERSE_OUTPUT\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B sticky_purge
Error behavior when unloading sticky or super\-sticky module during a module
\fI\%purge\fP\&.
.sp
Raise an \fBerror\fP (default) or emit a \fBwarning\fP or be \fBsilent\fP\&. It can
be changed at installation time with \fI\%\-\-with\-sticky\-purge\fP option.
The \fI\%MODULES_STICKY_PURGE\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_STICKY_PURGE\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B tag_abbrev
Abbreviations to use to report module tags.
.sp
Default value is \fBauto\-loaded=aL:loaded=L:hidden=H:hidden\-loaded=H:forbidden=F:nearly\-forbidden=nF:sticky=S:super\-sticky=sS:keep\-loaded=kL:warning=W\fP\&.
It can be changed at installation time with \fI\%\-\-with\-tag\-abbrev\fP
option. The \fI\%MODULES_TAG_ABBREV\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_TAG_ABBREV\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B tag_color_name
Tags whose name should be colored instead of module name.
.sp
This configuration option is set to an empty value by default. It can be
changed at installation time with \fI\%\-\-with\-tag\-color\-name\fP option.
The \fI\%MODULES_TAG_COLOR_NAME\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_TAG_COLOR_NAME\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B tcl_ext_lib
Modules Tcl extension library location.
.sp
Default value is \fB@libdir@/libtclenvmodules.so\fP\&. It can be changed at
installation time with \fI\%\-\-prefix\fP or \fI\%\-\-libdir\fP options.
The value of this option cannot be altered.
.UNINDENT
.INDENT 7.0
.TP
.B tcl_linter
Command to check syntax of modulefiles with through \fI\%lint\fP
sub\-command.
.sp
Default value is \fBnagelfar.tcl\fP\&. It can be changed at installation time
with \fI\%\-\-with\-tcl\-linter\fP and \fI\%\-\-with\-tcl\-linter\-opts\fP
options. The \fI\%MODULES_TCL_LINTER\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_TCL_LINTER\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B term_background
Terminal background color kind.
.sp
Default value is \fBdark\fP\&. It can be changed at installation time with
\fI\%\-\-with\-terminal\-background\fP option. The
\fI\%MODULES_TERM_BACKGROUND\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_TERM_BACKGROUND\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B term_width
Set the width of the output.
.sp
Default value is \fB0\fP\&. The \fI\%MODULES_TERM_WIDTH\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. The
\fI\%\-\-width\fP/\fI\%\-w\fP command line switches change the value of
this configuration option. See \fI\%MODULES_TERM_WIDTH\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B unique_name_loaded
Only one module loaded per module name.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-unique\-name\-loaded\fP option. The
\fI\%MODULES_UNIQUE_NAME_LOADED\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_UNIQUE_NAME_LOADED\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B unload_match_order
Unload firstly loaded or lastly loaded module matching request.
.sp
Default value is \fBreturnlast\fP\&. It can be changed at installation time with
\fI\%\-\-with\-unload\-match\-order\fP option. The
\fI\%MODULES_UNLOAD_MATCH_ORDER\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_UNLOAD_MATCH_ORDER\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B variant_shortcut
Shortcut characters that could be used to specify or report module variants.
.sp
This configuration option is set to an empty value by default. It can be
changed at installation time with \fI\%\-\-with\-variant\-shortcut\fP option.
The \fI\%MODULES_VARIANT_SHORTCUT\fP environment variable is defined by
\fI\%config\fP sub\-command when changing this configuration option from
its default value. See \fI\%MODULES_VARIANT_SHORTCUT\fP description for
details.
.UNINDENT
.INDENT 7.0
.TP
.B verbosity
Module command verbosity level.
.sp
Default value is \fBnormal\fP\&. It can be changed at installation time with
\fI\%\-\-with\-verbosity\fP option. The \fI\%MODULES_VERBOSITY\fP
environment variable is defined by \fI\%config\fP sub\-command when
changing this configuration option from its default value. The
\fI\%\-\-debug\fP/\fI\%\-D\fP, \fI\%\-\-silent\fP/\fI\%\-s\fP,
\fI\%\-\-trace\fP/\fI\%\-T\fP and \fI\%\-\-verbose\fP/\fI\%\-v\fP
command line switches change the value of this configuration option. See
\fI\%MODULES_VERBOSITY\fP description for details.
.UNINDENT
.INDENT 7.0
.TP
.B wa_277
Workaround for Tcsh history issue.
.sp
Default value is \fB0\fP\&. It can be changed at installation time with
\fI\%\-\-enable\-wa\-277\fP option. The \fI\%MODULES_WA_277\fP environment
variable is defined by \fI\%config\fP sub\-command when changing this
configuration option from its default value. See \fI\%MODULES_WA_277\fP
description for details.
.UNINDENT
.UNINDENT
.INDENT 0.0
.TP
.B describe [collection]
See \fI\%saveshow\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B disable [collection]
See \fI\%saverm\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B display modulefile...
Display information about one or more \fImodulefiles\fP\&. The display sub\-command
will list the full path of the \fImodulefile\fP and the environment changes
the \fImodulefile\fP will make if loaded. (Note: It will not display any
environment changes found within conditional statements.)
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are evaluated sequentially in the
specified order. If one modulefile evaluation raises an error, display
sequence continues.
.UNINDENT
.INDENT 0.0
.TP
.B edit modulefile
Open \fImodulefile\fP for edition with text editor command designated by the
\fI\%editor\fP configuration option.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.UNINDENT
.INDENT 0.0
.TP
.B help [modulefile...]
Print the usage of each sub\-command. If an argument is given, print the
Module\-specific help information for the \fImodulefile\fP\&.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are evaluated sequentially in the
specified order. If one modulefile evaluation raises an error, help sequence
continues.
.UNINDENT
.INDENT 0.0
.TP
.B info\-loaded modulefile
Returns the names of currently loaded modules matching passed \fImodulefile\fP\&.
Returns an empty string if passed \fImodulefile\fP does not match any loaded
modules. See \fI\%module\-info loaded\fP in the
\fI\%modulefile\fP man page for further explanation.
.UNINDENT
.INDENT 0.0
.TP
.B initadd modulefile...
Add \fImodulefile\fP to the shell\(aqs initialization file in the user\(aqs home
directory. The startup files checked (in order) are:
.sp
C Shell
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.cshrc\fP, \fB\&.csh_variables\fP and \fB\&.login\fP
.UNINDENT
.UNINDENT
.sp
TENEX C Shell
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.tcshrc\fP, \fB\&.cshrc\fP, \fB\&.csh_variables\fP
and \fB\&.login\fP
.UNINDENT
.UNINDENT
.sp
Bourne and Korn Shells
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.profile\fP
.UNINDENT
.UNINDENT
.sp
GNU Bourne Again Shell
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.bash_profile\fP, \fB\&.bash_login\fP,
\fB\&.profile\fP and \fB\&.bashrc\fP
.UNINDENT
.UNINDENT
.sp
Z Shell
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.zshrc\fP, \fB\&.zshenv\fP and \fB\&.zlogin\fP
.UNINDENT
.UNINDENT
.sp
Friendly Interactive Shell
.INDENT 7.0
.INDENT 3.5
\fB\&.modules\fP, \fB\&.config/fish/config.fish\fP
.UNINDENT
.UNINDENT
.sp
If a \fBmodule load\fP line is found in any of these files, the \fImodulefiles\fP
are appended to any existing list of \fImodulefiles\fP\&. The \fBmodule load\fP
line must be located in at least one of the files listed above for any of
the \fI\%init\fP sub\-commands to work properly. If the
\fBmodule load\fP line is found in multiple shell initialization files, all of
the lines are changed.
.UNINDENT
.INDENT 0.0
.TP
.B initclear
Clear all of the \fImodulefiles\fP from the shell\(aqs initialization files.
.UNINDENT
.INDENT 0.0
.TP
.B initlist
List all of the \fImodulefiles\fP loaded from the shell\(aqs initialization file.
.UNINDENT
.INDENT 0.0
.TP
.B initprepend modulefile...
Does the same as \fI\%initadd\fP but prepends the given modules to the
beginning of the list.
.UNINDENT
.INDENT 0.0
.TP
.B initrm modulefile...
Remove \fImodulefile\fP from the shell\(aqs initialization files.
.UNINDENT
.INDENT 0.0
.TP
.B initswitch modulefile1 modulefile2
Switch \fImodulefile1\fP with \fImodulefile2\fP in the shell\(aqs initialization files.
.UNINDENT
.INDENT 0.0
.TP
.B is\-avail modulefile...
Returns a true value if any of the listed \fImodulefiles\fP exists in enabled
\fI\%MODULEPATH\fP\&. Returns a false value otherwise. See \fI\%is\-avail\fP
in the \fI\%modulefile\fP man page for further explanation.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.UNINDENT
.INDENT 0.0
.TP
.B is\-loaded [modulefile...]
Returns a true value if any of the listed \fImodulefiles\fP has been loaded or if
any \fImodulefile\fP is loaded in case no argument is provided. Returns a false
value otherwise. See \fI\%is\-loaded\fP in the \fI\%modulefile\fP man page
for further explanation.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.UNINDENT
.INDENT 0.0
.TP
.B is\-saved [collection...]
Returns a true value if any of the listed \fIcollections\fP exists or if any
\fIcollection\fP exists in case no argument is provided. Returns a false value
otherwise. See \fI\%is\-saved\fP in the \fI\%modulefile\fP man page for
further explanation.
.UNINDENT
.INDENT 0.0
.TP
.B is\-used [directory...]
Returns a true value if any of the listed \fIdirectories\fP has been enabled in
\fI\%MODULEPATH\fP or if any \fIdirectory\fP is enabled in case no argument is
provided. Returns a false value otherwise. See \fI\%is\-used\fP in the
\fI\%modulefile\fP man page for further explanation.
.UNINDENT
.INDENT 0.0
.TP
.B keyword [\-a] [\-j] string
See \fI\%search\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B lint [\-a] [modulefile...]
Analyze syntax of one or more \fImodulefiles\fP with the linter command
designated by the \fI\%tcl_linter\fP configuration option.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If no \fImodulefile\fP is specified, all the \fImodulefiles\fP and modulerc
available in enabled modulepaths are analyzed as well as global rc, user rc
and modulecache files . Hidden modulefiles are also analyzed when
\fI\%\-\-all\fP/\fI\%\-a\fP option is set.
.sp
When \fBnagelfar.tcl\fP is the selected linter command, a static Tcl
syntax analysis is performed. In addition, syntax of modulefile commands are
checked in these files based on their kind (global/user rc, modulerc,
modulecache or modulefile).
.UNINDENT
.INDENT 0.0
.TP
.B list [\-t|\-l|\-j] [\-a] [\-o LIST] [\-S|\-C] [pattern...]
List loaded modules. If a \fIpattern\fP is given, then the loaded modules are
filtered to only list those whose name matches this \fIpattern\fP\&. It may contain
wildcard characters. \fIpattern\fP is matched in a case insensitive manner by
default. If multiple \fIpatterns\fP are given, loaded module has to match at
least one of them to be listed.
.sp
Module tags applying to the loaded modules are reported along the module name
they are associated to (see \fI\%Module tags\fP section).
.sp
Module variants selected on the loaded modules are reported along the module
name they belong to (see \fI\%Module variants\fP section).
.sp
A \fIKey\fP section is added at the end of the output in case some elements are
reported in parentheses or chevrons along module name or if some graphical
rendition is made over some output elements. This \fIKey\fP section gives hints
on the meaning of such elements.
.sp
The parameter \fIpattern\fP may also refer to a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If \fIpattern\fP contains variant specification, loaded modules are included in
results only if they match it. \fIpattern\fP may be a bare variant specification
without mention of a module name.
.UNINDENT
.INDENT 0.0
.TP
.B load [options] modulefile...
Load \fImodulefile\fP into the shell environment.
.sp
\fI\%load\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.IP \(bu 2
\fB\-\-tag=taglist\fP
.UNINDENT
.sp
Once loaded, the \fBloaded\fP module tag is associated to the loaded module. If
module has been automatically loaded by another module, the \fBauto\-loaded\fP
tag is associated instead (see \fI\%Module tags\fP section).
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are loaded sequentially in the
specified order. If one modulefile evaluation raises an error, load sequence
continues: loaded modules prior the evaluation error are kept loaded and
sequence is resumed with the load of remaining modulefile in list.
Conversely, load sequence is aborted and already loaded modulefiles are
withdrawn if \fI\%load\fP sub\-command is defined in
\fI\%abort_on_error\fP configuration option and \fI\%\-\-force\fP option
is not set.
.sp
The \fI\%\-\-tag\fP option accepts a list of module tags to apply to
\fImodulefile\fP once loaded. If module is already loaded, tags from \fItaglist\fP
are added to the list of tags already applied to this module.
.UNINDENT
.INDENT 0.0
.TP
.B load\-any [options] modulefile...
Load into the shell environment one of the \fImodulefile\fP specified. Try to
load each \fImodulefile\fP specified in list from the left to the right until
one got loaded or is found already loaded. Do not complain if \fImodulefile\fP
cannot be found. But if its evaluation fails, an error is reported and next
modulefile in list is evaluated.
.sp
\fI\%load\-any\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.IP \(bu 2
\fB\-\-tag=taglist\fP
.UNINDENT
.sp
Once loaded, the \fBloaded\fP module tag is associated to the loaded module. If
module has been automatically loaded by another module, the \fBauto\-loaded\fP
tag is associated instead (see \fI\%Module tags\fP section).
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
The \fI\%\-\-tag\fP option accepts a list of module tags to apply to
\fImodulefile\fP once loaded. If module is already loaded, tags from \fItaglist\fP
are added to the list of tags already applied to this module.
.UNINDENT
.INDENT 0.0
.TP
.B mod\-to\-sh [options] shell modulefile...
Evaluate \fImodulefile\fP and report resulting environment changes as code for
\fIshell\fP\&.
.sp
\fI\%mod\-to\-sh\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.UNINDENT
.sp
An attempt to load \fImodulefile\fP is made to get its environment changes. This
evaluation does not change the current shell environment. Like for
\fI\%load\fP sub\-command, no evaluation occurs if \fImodulefile\fP is found
loaded in current environment.
.sp
Changes made on environment variable intended for Modules private use (e.g.,
\fI\%LOADEDMODULES\fP, \fI\%_LMFILES_\fP, \fB__MODULES_*\fP) are ignored.
.sp
\fIShell\fP could be any shell name supported by \fBmodulecmd.tcl\fP\&.
.sp
Produced \fIshell\fP code is returned on the message output channel by
\fBmodulecmd.tcl\fP\&. Thus it is not rendered in current environment by the
\fBmodule\fP shell function.
.sp
\fI\%mod\-to\-sh\fP automatically set \fI\%verbosity\fP to the \fBsilent\fP
mode, to avoid messages to mix with the produced shell code. Verbosity is not
changed if set to the \fBtrace\fP mode or any higher debugging level.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are evaluated sequentially in the
specified order. If one modulefile evaluation raises an error, mod\-to\-sh
sequence continues: environment change from modules evaluated prior the
error are preserved and sequence is resumed with the evaluation of remaining
modulefile in list. Conversely, mod\-to\-sh sequence is aborted and changes
from already evaluated modules are withdrawn if \fI\%mod\-to\-sh\fP
sub\-command is defined in \fI\%abort_on_error\fP configuration option and
\fI\%\-\-force\fP option is not set.
.UNINDENT
.INDENT 0.0
.TP
.B path modulefile
Print path to \fImodulefile\fP\&.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.UNINDENT
.INDENT 0.0
.TP
.B paths pattern
Print path of available \fImodulefiles\fP matching \fIpattern\fP\&.
.sp
The parameter \fIpattern\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If \fIpattern\fP contains variant specification or \fI\%Extra specifier\fP, the
\fI\%Extra match search\fP process is triggered to collect command information
used in modulefiles. Modules are included in results only if they match
\fIpattern\fP variant specification and extra specifier. \fIpattern\fP may be a bare
variant specification or extra specifier without mention of a module name.
.UNINDENT
.INDENT 0.0
.TP
.B prepend\-path [options] variable value...
Prepend \fIvalue\fP to environment \fIvariable\fP\&. The \fIvariable\fP is a colon, or
\fIdelimiter\fP, separated list. See \fI\%prepend\-path\fP in the
\fI\%modulefile\fP man page for \fIoptions\fP description and further
explanation.
.sp
When \fI\%prepend\-path\fP is called as a module sub\-command, the reference
counter variable, which denotes the number of times \fIvalue\fP has been added to
environment \fIvariable\fP, is not updated unless if the \fB\-\-duplicates\fP option
is set.
.UNINDENT
.INDENT 0.0
.TP
.B purge [\-f]
Unload all loaded \fImodulefiles\fP\&.
.sp
When the \fI\%\-\-force\fP option is set, also unload \fI\%sticky modules\fP,
modulefiles that are depended by non\-unloadable modules and modulefiles
raising an evaluation error.
.sp
If one modulefile unload evaluation raises an error, purge sequence
continues: unloaded modules prior the evaluation error are kept unloaded and
sequence is resumed with the unload of remaining modulefiles. Conversely,
purge sequence is aborted and already unloaded modulefiles are restored if
\fI\%purge\fP sub\-command is defined in \fI\%abort_on_error\fP
configuration option and \fI\%\-\-force\fP option is not set.
.UNINDENT
.INDENT 0.0
.TP
.B refresh
Force a refresh of all non\-persistent components of currently loaded modules.
This should be used on derived shells where shell completions, shell aliases
or shell functions need to be reinitialized but the environment variables
have already been set by the currently loaded modules.
.sp
Loaded modules are evaluated in \fBrefresh\fP mode following their load order.
In this evaluation mode only the \fI\%complete\fP, \fI\%set\-alias\fP,
\fI\%set\-function\fP and \fI\%puts\fP modulefile commands will produce
environment changes. Other modulefile commands that produce environment
changes (like \fI\%setenv\fP or \fI\%append\-path\fP) are ignored during a
\fBrefresh\fP evaluation as their changes should already be applied.
.sp
Only the loaded modules defining non\-persistent environment changes are
evaluated in \fBrefresh\fP mode. Such loaded modules are listed in the
\fI\%__MODULES_LMREFRESH\fP environment variable.
.sp
If one modulefile evaluation raises an error, refresh sequence continues:
environment changes from refreshed modules prior the evaluation error are
preserved and sequence is resumed with the refresh of remaining modulefiles.
.UNINDENT
.INDENT 0.0
.TP
.B reload [\-f]
Unload then load all loaded \fImodulefiles\fP\&.
.sp
No unload then load is performed and an error is returned if the loaded
\fImodulefiles\fP have unsatisfied constraint corresponding to the
\fI\%prereq\fP and \fI\%conflict\fP they declare.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.sp
If one modulefile load or unload evaluation raises an error, reload sequence
aborts: environment changes coming from already evaluated modulefiles are
withdrawn and remaining modulefile evaluations are skipped. Conversely, if
\fI\%reload\fP is removed from \fI\%abort_on_error\fP configuration
option list or if \fI\%\-\-force\fP option is set, reload sequence continues:
already achieved module evaluations are kept and reload sequence is resumed
with the remaining modulefiles.
.UNINDENT
.INDENT 0.0
.TP
.B remove\-path [options] variable value...
Remove \fIvalue\fP from the colon, or \fIdelimiter\fP, separated list in environment
\fIvariable\fP\&. See \fI\%remove\-path\fP in the \fI\%modulefile\fP man page for
\fIoptions\fP description and further explanation.
.sp
When \fI\%remove\-path\fP is called as a module sub\-command, the reference
counter variable, which denotes the number of times \fIvalue\fP has been added to
environment \fIvariable\fP, is ignored and \fIvalue\fP is removed whatever the
reference counter value set.
.UNINDENT
.INDENT 0.0
.TP
.B reset [\-f]
Restore initial environment, which corresponds to the loaded state after
\fI\%Modules initialization\fP\&.
.sp
\fI\%reset\fP sub\-command restores the environment definition found in
\fI\%__MODULES_LMINIT\fP environment variable.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.sp
\fI\%reset\fP behavior can be changed with \fI\%reset_target_state\fP\&.
This configuration option is set by default to \fB__init__\fP, which
corresponds to the above behavior description. When set to \fB__purge__\fP,
\fI\%reset\fP performs a \fI\%purge\fP of the environment. When set to
any other value, \fI\%reset\fP performs a \fI\%restore\fP of
corresponding name collection.
.UNINDENT
.INDENT 0.0
.TP
.B restore [\-f] [collection]
Restore the environment state as defined in \fIcollection\fP\&. If \fIcollection\fP
name is not specified, then it is assumed to be the \fIdefault\fP collection if
it exists, \fB__init__\fP special collection otherwise. If \fIcollection\fP is a
fully qualified path, it is restored from this location rather than from a
file under the user\(aqs collection directory. If
\fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the value
of this variable is appended to the \fIcollection\fP file name to restore.
.sp
If \fIcollection\fP name is \fB__init__\fP, initial environment state defined in
\fI\%__MODULES_LMINIT\fP environment variable is restored.
.sp
When restoring a \fIcollection\fP, the currently set \fI\%MODULEPATH\fP
directory list and the currently loaded \fImodulefiles\fP are unused and
unloaded then used and loaded to exactly match the \fI\%MODULEPATH\fP and
loaded \fImodulefiles\fP lists saved in this \fIcollection\fP file. The order
of the paths and modulefiles set in \fIcollection\fP is preserved when
restoring. It means that currently loaded modules are unloaded to get
the same \fI\%LOADEDMODULES\fP root than collection and currently used
module paths are unused to get the same \fI\%MODULEPATH\fP root. Then
missing module paths are used and missing modulefiles are loaded.
.sp
If a module, without a default version explicitly defined, is recorded in a
\fIcollection\fP by its bare name: loading this module when restoring the
collection will fail if the configuration option \fI\%implicit_default\fP
is disabled.
.sp
If one modulefile load or unload evaluation raises an error, restore sequence
continues: environment changes from modules unloaded or loaded prior the
evaluation error are preserved and sequence is resumed with the unload or
load of remaining modulefiles.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.UNINDENT
.INDENT 0.0
.TP
.B rm [\-\-auto|\-\-no\-auto] [\-f] modulefile...
See \fI\%unload\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B save [collection]
Record the currently set \fI\%MODULEPATH\fP directory list and the
currently loaded \fImodulefiles\fP in a \fIcollection\fP file under the user\(aqs
collection directory \fB$HOME/.module\fP\&. If \fIcollection\fP name is not
specified, then it is assumed to be the \fBdefault\fP collection. If
\fIcollection\fP is a fully qualified path, it is saved at this location rather
than under the user\(aqs collection directory.
.sp
If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the
value of this variable will be appended to the \fIcollection\fP file name.
.sp
By default, if a loaded modulefile corresponds to the explicitly defined
default module version, the bare module name is recorded. If the
configuration option \fI\%implicit_default\fP is enabled, the bare module
name is also recorded for the implicit default module version. If
\fI\%MODULES_COLLECTION_PIN_VERSION\fP is set to \fB1\fP, module version is
always recorded even if it is the default version.
.sp
By default, only the module tags specifically set with the \fI\%\-\-tag\fP
option or resulting from a specific module state (like \fBauto\-loaded\fP and
\fBkeep\-loaded\fP tags) are recorded in collection. If
\fI\%MODULES_COLLECTION_PIN_TAG\fP is set to \fB1\fP, all tags are recorded
in collection except \fBnearly\-forbidden\fP tag.
.sp
No \fIcollection\fP is recorded and an error is returned if the loaded
\fImodulefiles\fP have unsatisfied constraint corresponding to the
\fI\%prereq\fP and \fI\%conflict\fP they declare.
.UNINDENT
.INDENT 0.0
.TP
.B savelist [\-t|\-l|\-j] [\-a] [\-S|\-C] [pattern...]
List collections that are currently saved under the user\(aqs collection
directory. If \fI\%MODULES_COLLECTION_TARGET\fP is set, only collections
matching the target suffix will be displayed unless if the
\fI\%\-\-all\fP/\fI\%\-a\fP option is set.
.sp
If a \fIpattern\fP is given, then the collections are filtered to only list
those whose name matches this \fIpattern\fP\&. It may contain wildcard characters.
\fIpattern\fP is matched in a case insensitive manner by default. If multiple
\fIpatterns\fP are given, collection has to match at least one of them to be
listed.
.sp
Stash collections are not listed unless if the \fI\%\-\-all\fP/\fI\%\-a\fP
option is set. Stash collections can be listed with \fI\%stashlist\fP
sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B saverm [collection]
Delete the \fIcollection\fP file under the user\(aqs collection directory. If
\fIcollection\fP name is not specified, then it is assumed to be the \fIdefault\fP
collection. If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix
equivalent to the value of this variable will be appended to the \fIcollection\fP
file name.
.UNINDENT
.INDENT 0.0
.TP
.B saveshow [collection]
Display the content of \fIcollection\fP\&. If \fIcollection\fP name is not specified,
then it is assumed to be the \fIdefault\fP collection if it exists, \fB__init__\fP
special collection otherwise. If \fIcollection\fP is a fully qualified path, this
location is displayed rather than a collection file under the user\(aqs
collection directory. If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix
equivalent to the value of this variable will be appended to the \fIcollection\fP
file name.
.sp
If \fIcollection\fP name is \fB__init__\fP, initial environment content defined in
\fI\%__MODULES_LMINIT\fP environment variable is displayed.
.UNINDENT
.INDENT 0.0
.TP
.B search [\-a] [\-j] string
Seeks through the \fI\%module\-whatis\fP information of all \fImodulefiles\fP
for the specified \fIstring\fP\&. All \fImodule\-whatis\fP information matching the
\fIstring\fP in a case insensitive manner will be displayed. \fIstring\fP may contain
wildcard characters.
.UNINDENT
.INDENT 0.0
.TP
.B sh\-to\-mod shell script [arg...]
Evaluate with \fIshell\fP the designated \fIscript\fP with defined \fIarguments\fP to
find out the environment changes it does. Environment prior and after
\fIscript\fP evaluation are compared to determine these changes. They are
translated into \fImodulefile\fP commands to output the modulefile content
equivalent to the evaluation of shell script.
.sp
Changes on environment variables, shell aliases, shell functions, shell
completions and current working directory are tracked.
.sp
Changes made on environment variable intended for Modules private use (e.g.,
\fI\%LOADEDMODULES\fP, \fI\%_LMFILES_\fP, \fB__MODULES_*\fP) are ignored.
.sp
\fIShell\fP could be specified as a command name or a fully qualified pathname.
The following shells are supported: sh, dash, csh, tcsh, bash, ksh, ksh93,
zsh and fish.
.sp
\fIShell\fP could also be set to \fBbash\-eval\fP\&. In this mode, bash shell \fIscript\fP
is not sourced but the output resulting from its execution is evaluated to
determine the environment changes it does.
.UNINDENT
.INDENT 0.0
.TP
.B show modulefile...
See \fI\%display\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B source [options] modulefile...
Execute \fImodulefile\fP into the shell environment. Once executed \fImodulefile\fP
is not marked loaded in shell environment which differ from \fI\%load\fP
sub\-command.
.sp
\fI\%source\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.UNINDENT
.sp
If \fImodulefile\fP corresponds to a fully qualified path, this file is executed.
Otherwise \fImodulefile\fP is searched among the available modulefiles.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are evaluated sequentially in the
specified order. If one modulefile evaluation raises an error, source
sequence continues: environment changes from modules sourced prior the
evaluation error are preserved and sequence is resumed with the source of
remaining modulefile in list.
.UNINDENT
.INDENT 0.0
.TP
.B spider [\-d|\-L] [\-t|\-l|\-j] [\-a] [\-o LIST] [\-S|\-C] [\-\-indepth|\-\-no\-indepth] [pattern...]
List all available \fImodulefiles\fP found in enabled modulepaths and recursively
found in modulepaths enabled by available \fImodulefiles\fP\&.
.sp
\fI\%spider\fP sub\-command first performs an \fI\%Extra match search\fP to
get all modulepaths to look at. These modulepaths are collected from the
directory arguments set to the \fI\%module use\fP,
\fI\%append\-path MODULEPATH\fP or \fI\%prepend\-path
MODULEPATH\fP modulefile commands. Collecting modulepaths is
first achieved in the global/user rc section and modulepaths defined in
\fI\%MODULEPATH\fP then in each modulepath collected from modulefiles, and
so on. As collecting modulepaths implies evaluating every available
modulefiles, it is advised to build and use \fI\%Module cache\fP to improve
search speed.
.sp
Once modulepaths are gathered, \fI\%spider\fP proceeds and reports like
\fI\%avail\fP sub\-command. The same set of options are supported.
.sp
If a \fIpattern\fP argument is given, then each collected modulepath is searched
for \fImodulefiles\fP whose pathname, symbolic version\-name or alias
match \fIpattern\fP in a case insensitive manner by default. \fIpattern\fP may
contain wildcard characters.i
.sp
Symbolic version\-names and aliases found in the search are displayed in the
result of this sub\-command. Symbolic version\-names are displayed next to
the \fImodulefile\fP they are assigned to within parenthesis. Aliases are listed
in the modulepath section where they have been defined. To distinguish
aliases from \fImodulefiles\fP a \fB@\fP symbol is added within parenthesis next to
their name. Aliases defined through a global or user specific module RC file
are listed under the \fBglobal/user modulerc\fP section.
.sp
When colored output is enabled and a specific graphical rendition is defined
for module \fIdefault\fP version, the \fBdefault\fP symbol is omitted and instead
the defined graphical rendition is applied to the relative modulefile. When
colored output is enabled and a specific graphical rendition is defined for
module alias, the \fB@\fP symbol is omitted. The defined graphical rendition
applies to the module alias name. See \fI\%MODULES_COLOR\fP and
\fI\%MODULES_COLORS\fP sections for details on colored output.
.sp
Module tags applying to the available \fImodulefiles\fP returned by the
\fI\%spider\fP sub\-command are reported along the module name they are
associated to (see \fI\%Module tags\fP section).
.sp
Module variants and their available values may be reported along the module
name they belong to (see \fI\%Module variants\fP section) if defined in spider
output configuration option (see \fI\%\-\-output\fP/\fI\%\-o\fP option). The
\fI\%Extra match search\fP process is triggered to collect variant
information.
.sp
A \fIKey\fP section is added at the end of the output in case some elements are
reported in parentheses or chevrons along module name or if some graphical
rendition is made over some output elements. This \fIKey\fP section gives hints
on the meaning of such elements.
.sp
The parameter \fIpattern\fP may also refer to a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If \fIpattern\fP contains variant specification or \fI\%Extra specifier\fP, the
\fI\%Extra match search\fP process is triggered to collect command information
used in modulefiles. Modules are included in results only if they match
\fIpattern\fP variant specification and extra specifier. \fIpattern\fP may be a bare
variant specification or extra specifier without mention of a module name.
.sp
When several \fIpatterns\fP are provided all modulefiles matching at least one of
these \fIpatterns\fP are listed.
.UNINDENT
.INDENT 0.0
.TP
.B stash [\-f]
\fI\%Save\fP current environment in a stash collection then
\fI\%reset\fP to initial environment.
.sp
A collection is created only if current environment state differs from
initial environment. Stash collection is named
\fIstash\-<unix_millis_timestamp>\fP where \fI<unix_millis_timestamp>\fP is the number
of milliseconds between Unix Epoch and when this command is run.
.sp
If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the
value of this variable will be appended to the stash collection file name.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.UNINDENT
.INDENT 0.0
.TP
.B stashclear
Remove all stash collection files of current \fI\%collection_target\fP\&. If
no collection target is currently set, remove stash collection files without
a target suffix.
.UNINDENT
.INDENT 0.0
.TP
.B stashlist [\-t|\-l|\-j]
List all stash collection files of current \fI\%collection_target\fP\&. If
no collection target is currently set, list stash collection files without a
target suffix.
.UNINDENT
.INDENT 0.0
.TP
.B stashpop [\-f] [stash]
\fI\%Restore\fP \fIstash\fP collection then delete corresponding
collection file.
.sp
\fIstash\fP is either a full stash collection name (i.e.,
\fIstash\-<unix_millis_timestamp>\fP) or a stash index. Most recent stash
collection has index \fI0\fP, \fI1\fP is the one before it. When no \fIstash\fP is given
the latest stash collection is assumed (that is stash index \fI0\fP).
.sp
If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the
value of this variable will be appended to the stash collection file name to
restore.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.UNINDENT
.INDENT 0.0
.TP
.B stashrm [stash]
\fI\%Remove\fP \fIstash\fP collection file.
.sp
\fIstash\fP is either a full stash collection name (i.e.,
\fIstash\-<unix_millis_timestamp>\fP) or a stash index. Most recent stash
collection has index \fI0\fP, \fI1\fP is the one before it. When no \fIstash\fP is given
the latest stash collection is assumed (that is stash index \fI0\fP).
.sp
If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the
value of this variable will be appended to the stash collection file name to
delete.
.UNINDENT
.INDENT 0.0
.TP
.B stashshow [stash]
\fI\%Display\fP the content of \fIstash\fP collection file.
.sp
\fIstash\fP is either a full stash collection name (i.e.,
\fIstash\-<unix_millis_timestamp>\fP) or a stash index. Most recent stash
collection has index \fI0\fP, \fI1\fP is the one before it. When no \fIstash\fP is given
the latest stash collection is assumed (that is stash index \fI0\fP).
.sp
If \fI\%MODULES_COLLECTION_TARGET\fP is set, a suffix equivalent to the
value of this variable will be appended to the stash collection file name to
display.
.UNINDENT
.INDENT 0.0
.TP
.B state [name]
Gets \fBmodulecmd.tcl\fP states. Reports the currently set value
of passed state \fIname\fP or all existing states if no \fIname\fP passed.
.UNINDENT
.INDENT 0.0
.TP
.B swap [options] [modulefile1] modulefile2
See \fI\%switch\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B switch [options] [modulefile1] modulefile2
Switch loaded \fImodulefile1\fP with \fImodulefile2\fP\&. If \fImodulefile1\fP is not
specified, it is assumed to be the currently loaded module that shares the
same root name as \fImodulefile2\fP\&. The root name is defined as the initial part
of a module name, i.e., all characters preceding the first \fB/\fP\&.
.sp
\fI\%switch\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.IP \(bu 2
\fB\-\-tag=taglist\fP
.UNINDENT
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
The \fI\%\-\-tag\fP option accepts a list of module tags to apply to
\fImodulefile\fP once loaded. If module is already loaded, tags from \fItaglist\fP
are added to the list of tags already applied to this module.
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.sp
If unload evaluation of \fImodulefile1\fP raises an error, switch sequence
aborts: no environment change from \fImodulefile1\fP unload is applied and load
of \fImodulefile2\fP is skipped. Conversely, if \fBswitch_unload\fP value is
removed from \fI\%abort_on_error\fP configuration option list (and
\fBswitch\fP value is not set there) or if \fI\%\-\-force\fP option is set,
switch sequence continues. If \fImodulefile1\fP is tagged \fBsuper\-sticky\fP,
switch sequence aborts in any case.
.sp
If load evaluation of \fImodulefile2\fP raises an error, switch sequence
continues: environment changes from \fImodulefile1\fP unload are applied but not
those from failed \fImodulefile2\fP load. Conversely, whole switch sequence is
aborted and unloaded \fImodulefile1\fP is restored if \fI\%switch\fP
sub\-command is defined in \fI\%abort_on_error\fP configuration option and
\fI\%\-\-force\fP option is not set.
.UNINDENT
.INDENT 0.0
.TP
.B test modulefile...
Execute and display results of the Module\-specific tests for the
\fImodulefile\fP\&.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When several \fImodulefiles\fP are passed, they are evaluated sequentially in the
specified order. If one modulefile evaluation raises an error, test sequence
continues.
.UNINDENT
.INDENT 0.0
.TP
.B try\-add [options] modulefile...
See \fI\%try\-load\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B try\-load [options] modulefile...
Like \fI\%load\fP sub\-command, load \fImodulefile\fP into the shell
environment, but do not complain if \fImodulefile\fP cannot be found. If
\fImodulefile\fP is found but its evaluation fails, error is still reported.
.sp
\fI\%try\-load\fP command accepts the following options:
.INDENT 7.0
.IP \(bu 2
\fB\-\-auto|\-\-no\-auto\fP
.IP \(bu 2
\fB\-f|\-\-force\fP
.IP \(bu 2
\fB\-\-tag=taglist\fP
.UNINDENT
.sp
Once loaded, the \fBloaded\fP module tag is associated to the loaded module. If
module has been automatically loaded by another module, the \fBauto\-loaded\fP
tag is associated instead (see \fI\%Module tags\fP section).
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
The \fI\%\-\-tag\fP option accepts a list of module tags to apply to
\fImodulefile\fP once loaded. If module is already loaded, tags from \fItaglist\fP
are added to the list of tags already applied to this module.
.sp
When several \fImodulefiles\fP are passed, they are try\-loaded sequentially in
the specified order. If one modulefile evaluation raises an error, try\-load
sequence continues: loaded modules prior the evaluation error are kept loaded
and sequence is resumed with the load of remaining modulefile in list.
Conversely, try\-load sequence is aborted and already loaded modulefiles are
withdrawn if \fI\%try\-load\fP sub\-command is defined in
\fI\%abort_on_error\fP configuration option and \fI\%\-\-force\fP option
is not set.
.UNINDENT
.INDENT 0.0
.TP
.B unload [\-\-auto|\-\-no\-auto] [\-f] modulefile...
Remove \fImodulefile\fP from the shell environment.
.sp
The parameter \fImodulefile\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
When the \fI\%\-\-force\fP option is set, unload modulefiles anyway even if
an evaluation error occurs.
.sp
When several \fImodulefiles\fP are passed, they are unloaded sequentially in the
specified order. If one modulefile evaluation raises an error, unload
sequence continues: unloaded modules prior the evaluation error are kept
unloaded and sequence is resumed with the unload of remaining modulefile in
list. Conversely, unload sequence is aborted and already unloaded modulefiles
are restored if \fI\%unload\fP sub\-command is defined in
\fI\%abort_on_error\fP configuration option and \fI\%\-\-force\fP option
is not set.
.UNINDENT
.INDENT 0.0
.TP
.B unuse directory...
Remove one or more \fIdirectories\fP from the \fI\%MODULEPATH\fP environment
variable.
.sp
If \fI\%module unuse\fP is called during a modulefile evaluation,
the reference counter environment variable
\fI\%__MODULES_SHARE_MODULEPATH\fP, which denotes
the number of times \fIdirectory\fP has been enabled, is checked and \fIdirectory\fP
is removed only if its relative counter is equal to 1 or not defined.
Otherwise \fIdirectory\fP is kept and reference counter is decreased by 1. When
\fI\%module unuse\fP is called from the command\-line or within an
initialization modulefile script \fIdirectory\fP is removed whatever the
reference counter value set.
.sp
If \fIdirectory\fP corresponds to the concatenation of multiple paths separated
by colon character, each path is treated separately.
.UNINDENT
.INDENT 0.0
.TP
.B update [\-f]
See \fI\%reload\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B use [\-a|\-\-append] directory...
Prepend one or more \fIdirectories\fP to the \fI\%MODULEPATH\fP environment
variable. The \fB\-\-append\fP flag will append the \fIdirectory\fP to
\fI\%MODULEPATH\fP\&.
.sp
When \fIdirectory\fP is already defined in \fI\%MODULEPATH\fP, it is not added
again or moved at the end or at the beginning of the environment variable.
.sp
If \fI\%module use\fP is called during a modulefile evaluation, the
reference counter environment variable
\fI\%__MODULES_SHARE_MODULEPATH\fP is also set to
increase the number of times \fIdirectory\fP has been added to
\fI\%MODULEPATH\fP\&. Reference counter is not updated when
\fI\%module use\fP is called from the command\-line or within an
initialization modulefile script.
.sp
A \fIdirectory\fP that does not exist yet can be specified as argument and then
be added to \fI\%MODULEPATH\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B whatis [\-a] [\-j] [pattern...]
Display the information set up by the \fI\%module\-whatis\fP commands inside
\fImodulefiles\fP matching \fIpattern\fP\&. \fIpattern\fP may contain wildcard characters.
If no \fIpattern\fP is specified, all \fI\%module\-whatis\fP lines will be shown.
.sp
The parameter \fIpattern\fP may also be a symbolic modulefile name or a
modulefile alias. It may also leverage a specific syntax to finely select
module version (see \fI\%Advanced module version specifiers\fP section below).
.sp
If \fIpattern\fP contains variant specification or \fI\%Extra specifier\fP, the
\fI\%Extra match search\fP process is triggered to collect command information
used in modulefiles. Modules are included in results only if they match
\fIpattern\fP variant specification and extra specifier. \fIpattern\fP may be a bare
variant specification or extra specifier without mention of a module name.
.UNINDENT
.SS Modulefiles
.sp
\fImodulefiles\fP are written in the Tool Command Language (Tcl) and are
interpreted by \fBmodulecmd.tcl\fP\&. \fImodulefiles\fP can use conditional
statements. Thus the effect a \fImodulefile\fP will have on the environment
may change depending upon the current state of the environment.
.sp
Environment variables are unset when unloading a \fImodulefile\fP\&. Thus, it is
possible to \fI\%load\fP a \fImodulefile\fP and then \fI\%unload\fP it without
having the environment variables return to their prior state.
.SS Advanced module version specifiers
.sp
When the advanced module version specifiers mechanism is enabled (see
\fI\%MODULES_ADVANCED_VERSION_SPEC\fP), the specification of modulefile
passed on Modules sub\-commands changes. After the module name a version
constraint and variants may be added.
.SS Version specifiers
.sp
After the module name a version constraint prefixed by the \fB@\fP character may
be added. It could be directly appended to the module name or separated from
it with a space character.
.sp
Constraints can be expressed to refine the selection of module version to:
.INDENT 0.0
.IP \(bu 2
a single version with the \fB@version\fP syntax, for instance \fBfoo@1.2.3\fP
syntax will select module \fBfoo/1.2.3\fP
.IP \(bu 2
a list of versions with the \fB@version1,version2,...\fP syntax, for instance
\fBfoo@1.2.3,1.10\fP will match modules \fBfoo/1.2.3\fP and \fBfoo/1.10\fP
.IP \(bu 2
a range of versions with the \fB@version1:\fP, \fB@:version2\fP and
\fB@version1:version2\fP syntaxes, for instance \fBfoo@1.2:\fP will select all
versions of module \fBfoo\fP greater than or equal to \fB1.2\fP, \fBfoo@:1.3\fP
will select all versions less than or equal to \fB1.3\fP and \fBfoo@1.2:1.3\fP
matches all versions between \fB1.2\fP and \fB1.3\fP including \fB1.2\fP and
\fB1.3\fP versions
.UNINDENT
.sp
Advanced specification of single version or list of versions may benefit from
the activation of the extended default mechanism (see
\fI\%MODULES_EXTENDED_DEFAULT\fP) to use an abbreviated notation like \fB@1\fP
to refer to more precise version numbers like \fB1.2.3\fP\&. Range of versions on
its side natively handles abbreviated versions.
.sp
In order to be specified in a range of versions or compared to a range of
versions, the version major element should corresponds to a number. For
instance \fB10a\fP, \fB1.2.3\fP, \fB1.foo\fP are versions valid for range
comparison whereas \fBdefault\fP or \fBfoo.2\fP versions are invalid for range
comparison.
.sp
Range of versions can be specified in version list, for instance
\fBfoo@:1.2,1.4:1.6,1.8:\fP\&. Such specification helps to exclude specific
versions, like versions \fB1.3\fP and \fB1.7\fP in previous example.
.sp
If the implicit default mechanism is also enabled (see
\fI\%MODULES_IMPLICIT_DEFAULT\fP), a \fBdefault\fP and \fBlatest\fP symbolic
versions are automatically defined for each module name (also at each
directory level for deep \fImodulefiles\fP). These automatic version symbols are
defined unless a symbolic version, alias, or regular module version already
exists for these \fBdefault\fP or \fBlatest\fP version names. Using the
\fBmod@latest\fP (or \fBmod/latest\fP) syntax ensures highest available version
will be selected.
.sp
The symbolic version \fBloaded\fP may be used over loaded module name to
designate the loaded version of the module with associated selected variants.
This version symbol should be specified using the \fB@\fP prefix notation (e.g.,
\fBfoo@loaded\fP). An error is returned if no version of designated module is
currently loaded.
.SS Variants
.sp
After the module name, variants can be specified. \fI\%Module variants\fP are
alternative evaluation of the same \fImodulefile\fP\&. A variant is specified by
associating a value to its name. This specification is then transmitted to the
evaluating \fImodulefile\fP which instantiates the variant in the
\fI\%ModuleVariant\fP array variable when reaching the \fI\%variant\fP
modulefile command declaring this variant.
.sp
Variant can be specified with the \fBname=value\fP syntax where \fIname\fP is the
declared variant name and \fIvalue\fP, the value this variant is set to when
evaluating the \fImodulefile\fP\&.
.sp
Boolean variants can be specified with the \fB+name\fP syntax to set this
variant on and with the \fB\-name\fP or \fB~name\fP syntaxes to set this variant
off. The \fB\-name\fP syntax is not supported on \fI\%ml\fP command as the
minus sign already means to unload designated module. The \fB~name\fP and
\fB+name\fP syntaxes could also be defined appended to another specification
word (e.g., the module name, version or another variant specification),
whereas \fB\-name\fP syntax must be the start of a new specification word.
.sp
Boolean variants may also be specified with the \fBname=value\fP syntax. \fIvalue\fP
should be set to \fB1\fP, \fBtrue\fP, \fBt\fP, \fByes\fP, \fBy\fP or \fBon\fP to enable
the variant or it should be set to \fB0\fP, \fBfalse\fP, \fBf\fP, \fBno\fP, \fBn\fP or
\fBoff\fP to disable the variant.
.sp
Shortcuts may be used to abbreviate variant specification. The
\fI\%variant_shortcut\fP configuration option associates shortcut character
to variant name. With a shortcut defined, variant could be specified with the
\fB<shortcut>value\fP syntax. For instance if character \fB%\fP is set as a
shortcut for variant \fBfoo\fP, the \fB%value\fP syntax is equivalent to the
\fBfoo=value\fP syntax.
.sp
A variant shortcut must be of one character length and must avoid characters
used for other concerns or in module names or version specifications (i.e.,
\fI[\-+~/@=:,a\-zA\-Z0\-9]\fP).
.sp
Variant \fIname\fP should only be composed of characters part of the
\fBA\-Za\-z0\-9_\-\fP range. Also, a variant name cannot start with \fB\-\fP (minus)
character and the overall name cannot just be a number.
.sp
Specific characters used in variant specification syntax cannot be used as
part of the name or version of a module. These specific characters are \fB+\fP,
\fB~\fP, \fB=\fP and all characters set as variant shortcut. Exception is made for
\fB+\fP and \fB~\fP characters if string that follows after does not correspond to
a valid variant name (e.g., \fIname+\fP, \fIname++\fP, \fIname/version+1\fP).
.SS Extra specifier
.sp
After the module name, extra specifiers can be defined in module search
context. Extra specifiers are an extra query to list available modulefiles
based on their content definition. They rely on the \fI\%Extra match search\fP
mechanism that collects content of available modulefiles.
.sp
Extra specifier can be set with the \fBelement:name[,name,...]\fP syntax where
\fIelement\fP is a Tcl modulefile command and \fIname\fP an item defined by this
command. Depending on the kind of Tcl modulefile command, \fIname\fP can refer to
an environment variable, a shell alias, a module specification, etc.
.sp
Supported extra specifier \fIelements\fP are:
.INDENT 0.0
.IP \(bu 2
\fBvariant\fP, \fBcomplete\fP, \fBuncomplete\fP, \fBset\-alias\fP, \fBunset\-alias\fP,
\fBset\-function\fP, \fBunset\-function\fP, \fBchdir\fP, \fBtag\fP
.IP \(bu 2
\fBsetenv\fP, \fBunsetenv\fP, \fBappend\-path\fP, \fBprepend\-path\fP, \fBremove\-path\fP
and \fBpushenv\fP: these elements related to environment variable handling may
also be aliased \fBenvvar\fP
.IP \(bu 2
\fBfamily\fP and \fBprovide\fP: these elements related to module alias may also
be aliases \fBprovided\-alias\fP
.IP \(bu 2
\fBprereq\fP, \fBprereq\-any\fP, \fBprereq\-all\fP, \fBdepends\-on\fP,
\fBdepends\-on\-any\fP, \fBalways\-load\fP, \fBload\fP, \fBload\-any\fP, \fBtry\-load\fP,
\fBswitch\fP and \fBswitch\-on\fP: these elements related to module requirement
definition accept a module specification as value \fIname\fP and may be aliased
\fBrequire\fP
.IP \(bu 2
\fBconflict\fP, \fBunload\fP, \fBswitch\fP and \fBswitch\-off\fP: these elements
related to module incompatibility definition accept a module specification
as value \fIname\fP and may be aliased \fBincompat\fP
.IP \(bu 2
\fBuse\fP
.UNINDENT
.sp
Each of the above supported \fIelements\fP corresponds to a Tcl modulefile
command. \fBload\fP, \fBload\-any\fP, \fBtry\-load\fP, \fBswitch\fP, \fBunload\fP and
\fBuse\fP match corresponding module sub\-commands. \fBprereq\-any\fP is an alias on
\fBprereq\fP, \fBdepends\-on\-any\fP and vice versa as both Tcl modulefile commands
are the same. Following the same trend \fBprereq\-all\fP is an alias on
\fBdepends\-on\fP and vice versa. Regarding \fBswitch\-off\fP and \fBswitch\-on\fP
elements they correspond respectively to the module to unload (if specified)
and the module to load on a \fBmodule switch\fP command. \fBswitch\fP is an alias
that matches both \fBswitch\-off\fP and \fBswitch\-on\fP elements. \fBrequire\fP and
\fBincompat\fP \fIelements\fP do not match module commands where \fB\-\-not\-req\fP
option is set. Setting the \fBMODULEPATH\fP environment variable with
\fBappend\-path\fP or \fBprepend\-path\fP commands can be queried with \fBuse\fP
element.
.sp
When several \fInames\fP are set on one \fIelement\fP criterion (e.g.,
\fBenv:PATH,LD_LIBRARY_PATH\fP), they act as an \fIOR\fP operation. Which means
modules listed in result are those matching any of the \fIelement\fP \fInames\fP
defined.
.sp
When several extra specifiers are set on a module search query (e.g.,
\fBenv:PATH env:LD_LIBRARY_PATH\fP), they act as an \fIAND\fP operation. Which means
modules listed in result are those matching all extra specifiers defined.
.sp
When an extra specifier is prefixed by \fBnot:\fP (e.g., \fBnot:env:PATH\fP), it
acts as a \fINOT\fP operation. Which means modules listed in result are those not
matching the extra specifier defined.
.sp
Module specification used as \fIname\fP value for some extra specifier \fIelements\fP
may leverage \fI\%Advanced module version specifiers\fP syntax. However if a
module version range or list is implied, it is currently resolved to existing
modules. Thus it may not match modulefile definitions targeting modules that
do not exist. In addition, module aliases and symbolic versions are not
resolved to their target either if set in extra specifier query or in
modulefile definition.
.sp
Extra specifier can only be set in a module search context (\fI\%avail\fP,
\fI\%spider\fP, \fI\%whatis\fP and \fI\%paths\fP sub\-commands). An error
is raised if used on a module specification query in another context. An error
is also raised if an unknown extra specifier \fIelement\fP is defined in search
query.
.SS Module tags
.sp
Module tags are piece of information that can be associated to individual
modulefiles. Tags could be purely informational or may lead to specific
behaviors.
.sp
Module tags may be inherited from the module state set by a modulefile command
or consequence of a module action. The inherited tags are:
.INDENT 0.0
.IP \(bu 2
\fBauto\-loaded\fP: module has been automatically loaded by another module
.IP \(bu 2
\fBforbidden\fP: module has been set \fIforbidden\fP through the use of the
\fI\%module\-forbid\fP command and thus this module cannot be loaded.
.IP \(bu 2
\fBhidden\fP: module has been set \fIhidden\fP through the use of the
\fI\%module\-hide\fP command and thus it is not reported by default among
the result of \fI\%avail\fP or \fI\%spider\fP sub\-commands.
.IP \(bu 2
\fBhidden\-loaded\fP: module has been set \fIhidden once loaded\fP through the use
of the \fI\%module\-hide \-\-hidden\-loaded\fP command thus it is
not reported by default among the result of a \fI\%list\fP sub\-command.
.IP \(bu 2
\fBloaded\fP: module is currently loaded
.IP \(bu 2
\fBnearly\-forbidden\fP: module will soon be \fIforbidden\fP, which has been set
through the use of the \fI\%module\-forbid\fP command. Thus this module
will soon not be able to load anymore.
.IP \(bu 2
\fBwarning\fP: a warning message for the use of the module is set through the
use of the \fI\%module\-warn\fP command.
.UNINDENT
.sp
Tags may also be associated to modules by using the \fI\%module\-tag\fP
modulefile command. Among tags that could be set this way, some have a special
meaning:
.INDENT 0.0
.IP \(bu 2
\fBkeep\-loaded\fP: auto\-loaded module cannot be automatically unloaded. This
tag is also set through the use of the \fI\%always\-load\fP command.
.IP \(bu 2
\fBsticky\fP: module once loaded cannot be unloaded unless forced or reloaded
(see \fI\%Sticky modules\fP section)
.IP \(bu 2
\fBsuper\-sticky\fP: module once loaded cannot be unloaded unless reloaded,
module cannot be unloaded even if forced (see \fI\%Sticky modules\fP section)
.UNINDENT
.sp
The \fI\%\-\-tag\fP option helps to apply additional tags to modules. It is
available on \fI\%load\fP, \fI\%load\-any\fP, \fI\%switch\fP and
\fI\%try\-load\fP sub\-commands and on \fI\%always\-load\fP,
\fI\%depends\-on\fP, \fI\%depends\-on\-any\fP, \fI\%module\fP,
\fI\%prereq\fP, \fI\%prereq\-all\fP and \fI\%prereq\-any\fP modulefile
commands. In case the designated module is already loaded, the additional tags
are added to the list of tags already applied to this module.
.sp
Module tags are reported along the module they are associated to on
\fI\%avail\fP, \fI\%list\fP and \fI\%spider\fP sub\-command results and
also when module\(aqs loading, unloading, refreshing or tagging evaluation is
mentioned. Tags could be reported either:
.INDENT 0.0
.IP \(bu 2
along the module name, all tags set within angle brackets, each tag
separated from the others with a colon character (e.g.,
\fBfoo/1.2 <tag1:tag2>\fP).
.IP \(bu 2
graphically rendered over the module name for each tag associated to a
Select Graphic Rendition (SGR) code in the color palette (see
\fI\%MODULES_COLORS\fP)
.UNINDENT
.sp
When an abbreviated string is associated to a tag name (see
\fI\%MODULES_TAG_ABBREV\fP), this abbreviation is used to report tag along
the module name or the tag is graphically rendered over the module name if a
SGR code is associated with tag abbreviation in the color palette. With an
abbreviation set, the SGR code associated to the tag full name is ignored thus
an SGR code should be associated to the abbreviation to get a graphical
rendering of tag. If the abbreviation associated to a tag corresponds to the
empty string, tag is not reported.
.sp
Graphical rendering is made over the tag name or abbreviation instead of over
the module name for each tag name or abbreviation set in the
\fI\%MODULES_TAG_COLOR_NAME\fP environment variable.
.sp
When several tags have to be rendered graphically over the same module name,
each tag is rendered over a sub\-part of the module name. In case more tags
need to be rendered than the total number of characters in the module name,
the remaining tags are graphically rendered over the tag name instead of over
the module name.
.sp
When the JSON output mode is enabled (with \fI\%\-\-json\fP), tags are
reported by their name under the \fBtags\fP attribute. Tag abbreviation and
color rendering do not apply on JSON output.
.sp
Module tags cannot be used in search query to designate a modulefile.
.SS Sticky modules
.sp
Modules are said \fIsticky\fP when they cannot be unloaded (they stick to the
loaded environment). Two kind of stickiness can be distinguished:
.INDENT 0.0
.IP \(bu 2
\fBsticky\fP module: cannot be unloaded unless if the unload is forced or if
the module is reloaded after being unloaded or if restoring a collection.
.IP \(bu 2
\fBsuper\-sticky\fP module: cannot be unloaded unless if the module is reloaded
after being unloaded; super\-sticky modules cannot be unloaded even if the
unload is forced.
.UNINDENT
.sp
Modules are designated sticky by associating them the \fBsticky\fP or the
\fBsuper\-sticky\fP \fI\%module tag\fP with the \fI\%module\-tag\fP
modulefile command.
.sp
When stickiness is defined over the generic module name (and not over a
specific module version, a version list or a version range), sticky or
super\-sticky module can be swapped by another version of module. For instance
if the \fBsticky\fP tag is defined over \fIfoo\fP module, loaded module \fIfoo/1.2\fP
can be swapped by \fIfoo/2.0\fP\&. Such stickiness definition means one version of
module should stay loaded whatever version it is.
.sp
When restoring a \fI\%collection\fP or resetting to the initial
environment, sticky modules are unloaded to ensure \fI\%restore\fP or
\fI\%reset\fP sub\-commands fully set the environment in target collection or
initial state. Super\-sticky modules still cannot be unloaded with
\fI\%restore\fP and \fI\%reset\fP sub\-commands.
.SS Module variants
.sp
Module variants are alternative evaluation of the same \fImodulefile\fP\&. A variant
is specified by associating a value to its name when designating module.
Variant specification relies on the \fI\%Advanced module version specifiers\fP
mechanism.
.sp
Once specified, variant\(aqs value is transmitted to the evaluating \fImodulefile\fP
which instantiates the variant in the \fI\%ModuleVariant\fP array variable
when reaching the \fI\%variant\fP modulefile command declaring this variant.
For instance the \fBmodule load foo/1.2 bar=value1\fP command leads to the
evaluation of \fIfoo/1.2\fP modulefile with \fIbar=value1\fP variant specification.
When reaching the \fBvariant bar value1 value2 value3\fP command in modulefile
during its evaluation, the \fBModuleVariant(bar)\fP array element is set to
the \fBvalue1\fP string.
.sp
Once variants are instantiated, modulefile\(aqs code could check the variant
values to adapt the evaluation and define for instance different module
requirements or produce different environment variable setup.
.sp
Variants are interpreted in contexts where \fImodulefiles\fP are evaluated.
Variants specified on module designation are ignored by the
\fI\%is\-avail\fP or \fI\%path\fP sub\-commands. On search sub\-commands
(\fI\%avail\fP, \fI\%spider\fP, \fI\%whatis\fP and \fI\%paths\fP),
variants are interpreted and trigger the \fI\%Extra match search\fP process to
filter results.
.sp
When modulefile is evaluated a value should be specified for each variant this
modulefile declares. When reaching the \fI\%variant\fP modulefile command
declaring a variant, an error is raised if no value is specified for this
variant and if no default value is declared. Specified variant value should
match a value from the declared accepted value list if such list is defined
otherwise an error is raised. Additionally if a variant is specified but does
not correspond to a variant declared in modulefile, an error is raised.
.sp
When searching for modules with variants specified in search query, the
\fI\%Extra match search\fP process triggers a specific \fIscan\fP modulefile
evaluation. Variants defined in modulefile are collected during this
evaluation then compared to the variants specified in search query. If there
is a match, module is included in search results otherwise it is withdrawn.
.sp
When searching for available modules, if one variant is specified multiple
times, matching modules are those providing all specified variant values. For
instance \fBbar=value1 bar=value2\fP will return modules defining a \fBbar\fP
variant with \fBvalue1\fP and \fBvalue2\fP as available values. On a module
selection context, only the last specified value is retained. Which means on
previous example that \fBbar\fP variant is set to \fBvalue2\fP\&.
.sp
When searching for available modules, multiple values may be set on one
variant criterion, which matches modules that provide any of these variant
values. For instance \fBbar=value1,value2\fP will return modules defining a
\fBbar\fP variant with either \fBvalue1\fP or \fBvalue2\fP as available value.
.sp
When searching for available modules, \fBnot:\fP prefix may be added on variant
criterion, which matches modules that do not provide these variant values. For
instance \fBnot:bar=value1\fP will return modules not defining a \fBbar\fP variant
or defining a \fBbar\fP variant but without \fBvalue1\fP among available values.
.sp
Module variants are reported along the module they are associated to on
\fI\%list\fP sub\-command results. They are also reported on \fI\%avail\fP
and \fI\%spider\fP sub\-commands if specified in search query or added to the
element to report in sub\-command output (see \fI\%\-\-output\fP/\fI\%\-o\fP
option).
.sp
Variants are reported within curly braces next to module name, each variant
definition separated from the others with a colon character (e.g.,
\fBfoo/1.2{variant1=value:+variant2}\fP). Boolean variants are reported with the
\fB+name\fP or \fB\-name\fP syntaxes on \fI\%list\fP sub\-command or with the
\fBname=on,off\fP syntax on \fI\%avail\fP and \fI\%spider\fP sub\-commands.
When a shortcut character is defined for a variant (see
\fI\%MODULES_VARIANT_SHORTCUT\fP) it is reported with the
\fB<shortcut>value\fP syntax. For instance if \fB%\fP character is defined as a
shortcut for \fIvariant1\fP: \fBfoo/1.2{%value:+variant2}\fP\&.
.sp
When the JSON output mode is enabled (with \fI\%\-\-json\fP), variants are
reported under the \fBvariants\fP JSON object as name/value pairs. Values of
Boolean variant are set as JSON Boolean. Other values are set as JSON strings.
Variant shortcut and color rendering do not apply on JSON output.
.SS Extra match search
.sp
Extra match search is a mechanism that evaluates available modulefiles during
a module search to find those matching an extra query or to report additional
information. After selecting modulefiles that match the module name and
version specified in search query, these remaining modulefiles are evaluated
to collect their content.
.sp
Extra match search is available on the following module search sub\-commands:
\fI\%avail\fP, \fI\%spider\fP, \fI\%whatis\fP and \fI\%paths\fP\&.
.sp
Extra match search is triggered when:
.INDENT 0.0
.IP \(bu 2
\fI\%Module variants\fP and their available values have to be reported in
avail and spider outputs (see \fI\%\-\-output\fP/\fI\%\-o\fP option): extra
match search is triggered to collect variant information
.IP \(bu 2
Provided module aliases have to be reported in avail and spider outputs (see
\fI\%\-\-output\fP/\fI\%\-o\fP option): extra match search is triggered to
collect these module aliases defined within modulefiles
.IP \(bu 2
Module variant is specified in search query: extra match search is triggered
to collect variant information then match them against variant specified in
query
.IP \(bu 2
\fI\%Extra specifier\fP is specified in search query: extra match search is
triggered to collect commands used in modulefiles or modulercs then match
them against extra specifier query
.UNINDENT
.sp
If search query does not contain an extra query and if variant or provided
alias information should not be reported, no extra match search is performed.
If search query does not contain any module name and version but contains an
extra query or if variant information should be reported, extra match search
is applied to all available modulefiles. If provided alias information should
be reported, extra match search is applied to all available modulefiles even
if search query contains a module specification.
.sp
During this specific evaluation, modulefiles are interpreted in \fIscan\fP mode.
This mode aims to collect the different Tcl modulefile commands used. Special
care should be given when writing modulefiles to ensure they cope with such
evaluation mode.
.sp
Modulefiles tagged \fIforbidden\fP are excluded from extra match search
evaluation. Thus they are excluded from result when this mechanism is
triggered.
.sp
No \fIscan\fP modulefile evaluation is performed if search query is only composed
of \fBtag\fP extra specifier. Module tags are defined in modulercs thus no
modulefile evaluation is required to get tags applying to a modulefile.
.sp
As extra match search implies additional modulefile evaluations, it is advised
to build and use \fI\%Module cache\fP to improve search speed.
.SS Collections
.sp
Collections describe a sequence of \fI\%module use\fP then
\fI\%module load\fP commands that are interpreted by
\fBmodulecmd.tcl\fP to set the user environment as described by this
sequence.
.sp
Collections are generated by the \fI\%save\fP sub\-command that dumps the
current user environment state in terms of module paths and loaded modules. By
default collections are saved under the \fB$HOME/.module\fP directory.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module list
Currently Loaded Modulefiles:
 1) foo/1.2   2) bar/2.0   3) qux/3.5
$ module save foo
$ cat $HOME/.module/foo
module use \-\-append /path/to/modulefiles
module load foo
module load bar/2.0
module load qux/3.5
.EE
.UNINDENT
.UNINDENT
.sp
The content of a collection can also be displayed with the \fI\%saveshow\fP
sub\-command. Note that in the above example, bare module name is recorded for
\fBfoo\fP modulefile as loaded version is the implicit default. Loaded version
recording can be enforced by enabling \fI\%collection_pin_version\fP
configuration option.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module config collection_pin_version 1
$ module save foo
$ module saveshow foo
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
/home/user/.module/foo:

module use \-\-append /path/to/modulefiles
module load foo/1.2
module load bar/2.0
module load qux/3.5

\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.EE
.UNINDENT
.UNINDENT
.sp
When a collection is activated, with the \fI\%restore\fP
sub\-command, module paths and loaded modules are unused or unloaded if they
are not part or if they are not ordered the same way as in the collection.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module list
Currently Loaded Modulefiles:
 1) foo/1.2   2) bar/2.1   3) qux/3.5
$ module restore foo
Unloading qux/3.5
Unloading bar/2.1
Loading bar/2.0
Loading qux/3.5
$ module list
Currently Loaded Modulefiles:
 1) foo/1.2   2) bar/2.0   3) qux/3.5
.EE
.UNINDENT
.UNINDENT
.sp
In the above example, second and third module loaded are changed. First loaded
module is not changed or reloaded as it is the same module between current
environment and collection. As second loaded module was different, this module
and all those loaded afterward are unloaded to then load the sequence
described by collection. As a result, third loaded module is reloaded, even if
is was the same module between current environment and collection.
.sp
Existing collections can be listed with \fI\%savelist\fP sub\-command. They
can be deleted with \fI\%saverm\fP sub\-command.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module savelist
Named collection list:
 1) default   2) foo
$ module saverm default
$ module savelist
Named collection list:
 1) foo
.EE
.UNINDENT
.UNINDENT
.sp
When no argument is provided to \fI\%save\fP, \fI\%restore\fP,
\fI\%saveshow\fP or \fI\%saverm\fP sub\-commands, the \fBdefault\fP
collection is assumed.
.sp
Collection can also be specified as a full pathname:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module save /path/to/collections/bar
$ module saveshow /path/to/collections/bar
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
/path/to/collections/bar:

module use \-\-append /path/to/modulefiles
module load foo/1.2
module load bar/2.0
module load qux/3.5

\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.EE
.UNINDENT
.UNINDENT
.SS Initial environment
.sp
Initial environment state, which corresponds to modulepaths enabled and
modules loaded during \fI\%Modules initialization\fP,
is referred as the \fB__init__\fP collection. This collection is virtual as
its content is stored in the \fI\%__MODULES_LMINIT\fP and not in a file. It
can be displayed with \fI\%saveshow\fP and restored with \fI\%restore\fP
sub\-command.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module saveshow __init__
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
initial environment:

module use \-\-append /path/to/modulefiles
module load foo/1.2

\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.EE
.UNINDENT
.UNINDENT
.sp
If the \fBdefault\fP collection does not exist, \fI\%saveshow\fP and
\fI\%restore\fP sub\-commands assume \fB__init__\fP collection when no argument
provided to them.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module list
Currently Loaded Modulefiles:
 1) foo/1.2   2) bar/2.1   3) qux/3.5
$ module savelist
Named collection list:
 1) foo
$ module restore
Unloading qux/3.5
Unloading bar/2.1
.EE
.UNINDENT
.UNINDENT
.sp
Initial environment state can also be restored with the \fI\%reset\fP
sub\-command. This sub\-command behavior can be changed with
\fI\%reset_target_state\fP configuration option to choose to just purge
loaded modules or to restore a specific collection.
.SS Collection targets
.sp
A collection target can be defined for current environment session with the
\fI\%collection_target\fP configuration option. When set, available
collections are reduced to those suffixed with target name. Which means
\fI\%restore\fP, \fI\%saveshow\fP, \fI\%savelist\fP and \fI\%saverm\fP
only find collections matching currently set target.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module savelist
Named collection list:
 1) foo
$ module config collection_target mytarget
$ module savelist
No named collection (for target \(dqmytarget\(dq).
$ module restore foo
ERROR: Collection foo (for target \(dqmytarget\(dq) cannot be found
.EE
.UNINDENT
.UNINDENT
.sp
When saving a new collection, generated file is suffixed with currently set
target name.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module save bar
$ module savelist
Named collection list (for target \(dqmytarget\(dq):
 1) bar
$ ls $HOME/.module
bar.mytarget  foo
.EE
.UNINDENT
.UNINDENT
.sp
Collection targets help to distinguish contexts and make collection reachable
only from the context they have been made for. For instance the same user
account may be used to access different OSes or machine architectures. With a
target set, users are ensured to only access collections built for the context
they are currently connected to. See also \fI\%MODULES_COLLECTION_TARGET\fP
section.
.SS Stash collections
.sp
Current user environment can be stashed with \fI\%stash\fP sub\-command. When
this sub\-command is called, current module environment is saved in a stash
collection then \fI\%initial environment\fP is restored.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module list
Currently Loaded Modulefiles:
 1) foo/1.2   2) qux/4.2
$ module stash
Unloading qux/4.2
.EE
.UNINDENT
.UNINDENT
.sp
Specific sub\-commands are available to handle stash collections:
\fI\%stashpop\fP, \fI\%stashlist\fP, \fI\%stashshow\fP,
\fI\%stashrm\fP and \fI\%stashclear\fP\&. A stash collection is restored
with \fI\%stashpop\fP which also deletes the collection once restored.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module stashlist
Stash collection list (for target \(dqmytarget\(dq):
 0) stash\-1667669750191
$ module stashpop
Loading qux/4.2
$ module stashlist
No stash collection (for target \(dqmytarget\(dq).
.EE
.UNINDENT
.UNINDENT
.sp
Stash collections have same format and are saved in the same location than
other collections. Collection target also applies to stash collection.
Creation timestamp is saved in stash collection name.
.sp
Stash collection can be designated by their full collection name (i.e.,
\fIstash\-<creation_timestamp>\fP) or a stash index. Most recent stash
collection has index \fI0\fP, \fI1\fP is the one before it. When no argument is
provided on stash sub\-commands, the latest stash collection is assumed (that
is stash index \fI0\fP).
.INDENT 0.0
.INDENT 3.5
.sp
.EX
$ module stashlist
Stash collection list (for target \(dqmytarget\(dq):
 0) stash\-1667669750783   1) stash\-1667669750253
$ module stashshow 1
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
/home/user/.module/stash\-1667669750253.mytarget:

module use \-\-append /path/to/modulefiles
module load foo/1.2
module load bar/2.0

\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.EE
.UNINDENT
.UNINDENT
.SS Site\-specific configuration
.sp
Siteconfig, the site\-specific configuration script, is a way to extend
\fBmodulecmd.tcl\fP\&. Siteconfig is a Tcl script. Its location is
\fB@etcdir@/siteconfig.tcl\fP\&.
.sp
When \fBmodulecmd.tcl\fP is invoked it sources siteconfig script if it
exists. Any global variable or procedure of \fBmodulecmd.tcl\fP can be
redefined in siteconfig.
.sp
An additional siteconfig script may be specified through the
\fI\%extra_siteconfig\fP configuration option. The
\fI\%MODULES_SITECONFIG\fP environment variable is defined by
\fI\%config\fP sub\-command when setting \fI\%extra_siteconfig\fP\&. If it
exists the extra siteconfig is sourced by \fBmodulecmd.tcl\fP right after
main siteconfig script.
.SS Hooks
.sp
Siteconfig relies on the ability of the Tcl language to overwrite previously
defined variables and procedures. Sites may deploy their own Tcl code in
siteconfig to adapt \fBmodulecmd.tcl\fP to their specific needs. The
\fBtrace\fP Tcl command may especially be used to define hooks that are run when
entering or leaving a given procedure, or when a variable is read or written.
See \fBtrace(n)\fP man page for detailed information. The following
example setup a procedure that is executed before each modulefile evaluation:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
proc beforeEval {cmdstring code result op} {
   # code to run right before each modulefile evaluation
}
trace add execution execute\-modulefile enter beforeEval
.EE
.UNINDENT
.UNINDENT
.sp
Another possibility is to override the definition of an existing procedure by
first renaming its original version then creating a new procedure that will add
specific code and rely on the renamed original procedure for the rest. See
\fBrename(n)\fP man page for details. As an example, the following code
adds a new query option to the \fI\%module\-info\fP modulefile command:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
rename module\-info __module\-info
proc module\-info {what {more {}}} {
   switch \-\- $what {
      platform { return myhost\-$::tcl_platform(machine) }
      default { return [__module\-info $what $more] }
   }
}
.EE
.UNINDENT
.UNINDENT
.sp
If a hook procedure needs to execute modulefile commands (for example, to
define environment variables), these commands should be run through the
current modulefile Tcl interpreter. This ensures that the commands behave
consistently with the current modulefile evaluation mode.
.INDENT 0.0
.INDENT 3.5
.sp
.EX
proc hook_procedure {value} {
    # get the name of the current modulefile Tcl interpreter
    set modfile_interp [getCurrentModfileInterpName]

    # execute a modulefile command in the current interpreter context
    interp eval $modfile_interp setenv MYVAR $value
}
.EE
.UNINDENT
.UNINDENT
.SS Siteconfig hook variables
.sp
Some Tcl variables can be defined in siteconfig script with special hook
meaning. The following variables are recognized:
.INDENT 0.0
.TP
.B modulefile_extra_vars
List of variable names and associated values to setup in modulefile
evaluation context. These variables can be accessed when modulefile is
executed. In case code in a modulefile changes the value of such variable,
its value is reset to the one defined in \fI\%modulefile_extra_vars\fP
prior the evaluation of the next modulefile.
.INDENT 7.0
.INDENT 3.5
.sp
.EX
set modulefile_extra_vars {myvar 1 othervar {some text}}
.EE
.UNINDENT
.UNINDENT
.sp
In the above siteconfig example, \fI\%modulefile_extra_vars\fP sets the
\fBmyvar\fP and \fBothervar\fP variables in the modulefile evaluation context
with respectively \fB1\fP and \fBsome text\fP as value.
.UNINDENT
.INDENT 0.0
.TP
.B modulefile_extra_cmds
List of command and associated local procedure to setup in modulefile
evaluation context. These commands can be called from the modulefile to
execute associated procedure. In case a modulefile changes the definition
of such command, its definition is bound again on the procedure defined in
\fI\%modulefile_extra_cmds\fP prior the evaluation of the next modulefile.
.INDENT 7.0
.INDENT 3.5
.sp
.EX
proc mycmd {} {
    # Tcl code
}
proc anotherproc {args} {
    # Tcl code
}
set modulefile_extra_cmds {mycmd mycmd othercmd anotherproc}
.EE
.UNINDENT
.UNINDENT
.sp
In the above siteconfig example, \fI\%modulefile_extra_cmds\fP sets the
\fBmycmd\fP and \fBothercmd\fP commands in the modulefile evaluation context and
bind them respectively to the \fBmycmd\fP and \fBanotherproc\fP procedures
defined in siteconfig script.
.UNINDENT
.INDENT 0.0
.TP
.B modulerc_extra_vars
List of variable names and associated values to setup in modulerc evaluation
context. These variables can be accessed when modulerc is executed. In case
code in a modulerc changes the value of such variable, its value
is reset to the one defined in \fI\%modulerc_extra_vars\fP prior the
evaluation of the next modulerc.
.INDENT 7.0
.INDENT 3.5
.sp
.EX
set modulerc_extra_vars {myvar 1 othervar {some text}}
.EE
.UNINDENT
.UNINDENT
.sp
In the above siteconfig example, \fI\%modulerc_extra_vars\fP sets the
\fBmyvar\fP and \fBothervar\fP variables in the modulerc evaluation context with
respectively \fB1\fP and \fBsome text\fP as value.
.UNINDENT
.INDENT 0.0
.TP
.B modulerc_extra_cmds
List of command and associated local procedure to setup in modulerc
evaluation context. These commands can be called from the modulerc to execute
associated procedure. In case a modulerc changes the definition of such
command, its definition is bound again on the procedure defined in
\fI\%modulerc_extra_cmds\fP prior the evaluation of the next modulerc.
.INDENT 7.0
.INDENT 3.5
.sp
.EX
proc mycmd {} {
    # Tcl code
}
proc anotherproc {args} {
    # Tcl code
}
set modulerc_extra_cmds {mycmd mycmd othercmd anotherproc}
.EE
.UNINDENT
.UNINDENT
.sp
In the above siteconfig example, \fI\%modulerc_extra_cmds\fP sets the
\fBmycmd\fP and \fBothercmd\fP commands in the modulerc evaluation context and
bind them respectively to the \fBmycmd\fP and \fBanotherproc\fP procedures
defined in siteconfig script.
.UNINDENT
.SS Module cache
.sp
To improve module search efficiency, a module cache can be setup in each
modulepath. A module cache is represented by a \fB\&.modulecache\fP file
stored at the root of modulepath directory. This file aggregates contents of
all valid modulercs and modulefiles and issue description of all
non\-modulefiles stored in modulepath directory.
.sp
When cache file is available, a module search analyzes this file rather
walking through the content of modulepath directory to check if files are
modulefiles or not. Cache file reduces module search processing time
especially when hundreds of modulefiles are available and if these files are
located on busy storage systems. Having one file to read per modulepath rather
walking through a whole directory content extremely reduces the number of
required I/O operations.
.sp
When modulefiles or directories in the modulepath are not accessible for
everyone, a \fIlimited access\fP indication is recorded in cache file rather
content of these modulefiles and content of these directories. When cache file
containing such indication is processed, the limited access modulefiles are
tested to check if they are available to the current running user. Limited
access directories are walked down to find all available modulefiles and
modulercs.
.sp
Cache files are generated with \fI\%cachebuild\fP sub\-command. This command
has to be run by someone who owns write access in modulepath directory to
create cache file.
.sp
Cache files are used any time a module search occurs in modulepaths. They are
analyzed for instance during \fI\%avail\fP, \fI\%spider\fP,
\fI\%load\fP, \fI\%display\fP or \fI\%whatis\fP sub\-commands.
.sp
Cache files are removed with \fI\%cacheclear\fP sub\-command. This command
has to be run by someone who own write access in modulepath directory to
effectively delete cache file.
.SH EXIT STATUS
.sp
The \fBmodule\fP command exits with \fB0\fP if its execution succeed.
Otherwise \fB1\fP is returned.
.SH ENVIRONMENT
.INDENT 0.0
.TP
.B __MODULES_AUTOINIT_INPROGRESS
If set to \fB1\fP, the \fBautoinit\fP sub\-command process is skipped.
.sp
This environment variable is set to \fB1\fP by the \fBautoinit\fP
sub\-command after checking it is not set. It ensures no nested initialization
of Modules occur. At the end of the processing of the \fBautoinit\fP
sub\-command, \fI\%__MODULES_AUTOINIT_INPROGRESS\fP is unset.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMALTNAME
A colon separated list of the alternative names set through
\fI\%module\-version\fP and \fI\%module\-alias\fP statements corresponding to
all loaded \fImodulefiles\fP\&. Each element in this list starts by the name of the
loaded \fImodulefile\fP followed by all alternative names resolving to it. The
loaded modulefile and its alternative names are separated by the ampersand
character.
.sp
Each alternative name stored in \fI\%__MODULES_LMALTNAME\fP is prefixed by
the \fBal|\fP string if it corresponds to a module alias or prefixed by the
\fBas|\fP string if it corresponds to an automatic version symbol. These
prefixes help to distinguish the different kind of alternative name.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the alternative names matching loaded \fImodulefiles\fP
in order to keep environment consistent when conflicts or pre\-requirements
are set over these alternative designations. It also helps to find a match
after \fImodulefiles\fP being loaded when \fI\%unload\fP, \fI\%is\-loaded\fP
or \fI\%info\-loaded\fP actions are run over these names.
.sp
Starting version 4.7 of Modules, \fI\%__MODULES_LMALTNAME\fP is also used
on \fI\%list\fP sub\-command to report the symbolic versions associated with
the loaded modules.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMCONFLICT
A colon separated list of the \fI\%conflict\fP statements defined by all
loaded \fImodulefiles\fP\&. Each element in this list starts by the name of the
loaded \fImodulefile\fP declaring the conflict followed by the name of all
modulefiles it declares a conflict with. These loaded modulefiles and
conflicting modulefile names are separated by the ampersand character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the conflicts declared by the loaded \fImodulefiles\fP
in order to keep environment consistent when a conflicting module is asked
for load afterward.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMEXTRATAG
A colon separated list of the tags corresponding to all loaded \fImodulefiles\fP
that have been set through the \fI\%\-\-tag\fP option. Each element in this
list starts by the name of the loaded \fImodulefile\fP followed by all explicitly
set tags applying to it. The loaded modulefile and its tags are separated by
the ampersand character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to distinguish from all tags those that have been specifically set with
\fI\%\-\-tag\fP option.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMINIT
A colon separated list describing the modulepaths that have been enabled and
the \fImodulefiles\fP that have been loaded with their tags during \fI\%Modules
initialization\fP\&. Each element in this list
corresponds to a \fI\%collection\fP definition line.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the initial loaded state after initialization.
.sp
This initial environment state can then be restored with \fI\%reset\fP
sub\-command. It can also be restored with \fI\%restore\fP sub\-command when
\fB__init__\fP collection name is specified or when no collection name is
specified and no \fIdefault\fP collection exists.
.sp
The content of the initial environment can be displayed with
\fI\%saveshow\fP sub\-command when \fB__init__\fP collection name is specified
or when no collection name is specified and no \fIdefault\fP collection exists.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMPREREQ
A colon separated list of the \fI\%prereq\fP statements defined by all
loaded \fImodulefiles\fP\&. Each element in this list starts by the name of the
loaded \fImodulefile\fP declaring the pre\-requirement followed by the name of all
modulefiles it declares a \fI\%prereq\fP with. These loaded modulefiles and
pre\-required modulefile names are separated by the ampersand character. When
a \fI\%prereq\fP statement is composed of multiple modulefiles, these
modulefile names are separated by the pipe character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the pre\-requirement declared by the loaded
\fImodulefiles\fP in order to keep environment consistent when a pre\-required
module is asked for unload afterward.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMPREREQPATH
A colon separated list of the \fI\%prereq\fP statements set with a specific
\fB\-\-modulepath\fP option defined by all loaded \fImodulefiles\fP\&. Each element in
this list starts by the name of the loaded \fImodulefile\fP declaring the
pre\-requirement followed by the name of all modulefiles it declares a
\fI\%prereq\fP with and their specific modulepath. These loaded modulefiles,
pre\-required modulefile names and specific modulepaths set are separated by
the ampersand character. When a \fI\%prereq\fP statement is composed of
multiple modulefiles or multiple specific modulepaths, these names are
separated by the pipe character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the pre\-requirement declared by the loaded
\fImodulefiles\fP in order to keep environment consistent.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMREFRESH
A colon separated list of the loaded modules that are qualified for refresh
evaluation. Loaded modules listed in this variable are those defining
volatile environment changes like shell completion, alias and function.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMSOURCESH
A colon separated list of the \fI\%source\-sh\fP statements defined by all
loaded \fImodulefiles\fP\&. Each element in this list starts by the name of the
loaded \fImodulefile\fP declaring the environment changes made by the evaluation
of \fI\%source\-sh\fP scripts. This name is followed by each
\fI\%source\-sh\fP statement call and corresponding result achieved in
modulefile. The loaded modulefile name and each \fI\%source\-sh\fP statement
description are separated by the ampersand character. The \fI\%source\-sh\fP
statement call and each resulting modulefile command (corresponding to the
environment changes done by sourced script) are separated by the pipe
character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the modulefile commands applied for each
\fI\%source\-sh\fP command when loading the modulefile. In order to reverse
these modulefile commands when modulefile is unloaded to undo the environment
changes.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMSTICKYRULE
A colon separated list of the sticky or super\-sticky tag definitions applying
to loaded \fImodulefiles\fP\&. Each element in this list starts by the name of the
loaded \fImodulefile\fP followed by the sticky tag name and the module
specifications on which the tag applies. These loaded modulefiles and sticky
tag definitions are separated by the ampersand character. Tag name and module
specifications on which it applies are separated by the pipe character.
.sp
When stickiness applies specifically to the loaded module name and version,
sticky rule is not recorded in \fB__MODULES_LMSTICKYRULE\fP\&.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the stickiness scope when sticky module is changed.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMTAG
A colon separated list of the tags corresponding to all loaded \fImodulefiles\fP
that have been set through \fI\%module\-tag\fP statements or from other
modulefile statements like \fI\%module\-forbid\fP (that may apply the
\fInearly\-forbidden\fP tag in specific situation) (see \fI\%Module tags\fP section).
Each element in this list starts by the name of the loaded \fImodulefile\fP
followed by all tags applying to it. The loaded modulefile and its tags are
separated by the ampersand character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the tags applying to loaded \fImodulefiles\fP in order
to report these tags on \fI\%list\fP sub\-command output or to apply
specific behavior when unloading \fImodulefile\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMUSE
A colon separated list of the modulepaths enabled by all loaded
\fImodulefiles\fP\&. Each element in this list starts by the name of the loaded
\fImodulefile\fP enabling modulepath followed by all modulepaths it enables.
These loaded modulefiles and enabled modulepaths are separated by the
ampersand character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the modulepath enabled by the loaded \fImodulefiles\fP
in order to keep environment consistent when unloading these modules whereas
modulefiles from the enabled modulepaths are loaded.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_LMVARIANT
A colon separated list of the variant instantiated through \fI\%variant\fP
statements by all loaded \fImodulefiles\fP (see \fI\%Module variants\fP section).
Each element in this list starts by the name of the loaded \fImodulefile\fP
followed by all the variant definitions set during the load of this module.
The loaded modulefile and each of its variant definition are separated by the
ampersand character. Each variant definition starts with the variant name,
followed by the variant value set, then a flag to know if variant is of the
Boolean type and last element in this definition is a flag to know if the
chosen value is the default one for this variant and if it has been
automatically set or not. These four elements composing the variant
definition are separated by the pipe character.
.sp
This environment variable is intended for \fBmodule\fP command internal
use to get knowledge of the variant value defined by the loaded \fImodulefiles\fP
in order to keep environment consistent when requirements are set over a
specific variant value or just to report these variant values when listing
loaded modules.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_PUSHENV_<VAR>
Stack of saved values for \fB<VAR>\fP environment variable. A colon\-separated list containing pairs of elements. A pair is formed by a loaded
module name followed by the value set to \fB<VAR>\fP in this module with
\fI\%pushenv\fP command. An ampersand character separates the two parts of
the pair.
.sp
First element in list corresponds to the lastly set value of \fB<VAR>\fP\&.
If a value were set to \fB<VAR>\fP prior the first evaluated
\fI\%pushenv\fP command, this value is associated to an empty module name to
record it as a pair element in \fI\%__MODULES_PUSHENV_<VAR>\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_QUAR_<VAR>
Value of environment variable \fB<VAR>\fP passed to \fBmodulecmd.tcl\fP
in order to restore \fB<VAR>\fP to this value once started.
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_QUARANTINE_SET
If set to \fB1\fP, restore the environment variables set on hold by the
quarantine mechanism when starting \fBmodulecmd.tcl\fP script. This
variable is automatically defined by Modules shell initialization scripts or
\fBmodule\fP shell function when they apply the quarantine mechanism.
(see \fI\%MODULES_QUARANTINE_SUPPORT\fP).
.UNINDENT
.INDENT 0.0
.TP
.B __MODULES_SHARE_<VAR>
Reference counter variable for path\-like variable \fB<VAR>\fP\&. A colon
separated list containing pairs of elements. A pair is formed by a path
element followed its usage counter which represents the number of times
this path has been enabled in variable \fB<VAR>\fP\&. A colon separates the
two parts of the pair.
.sp
An element of a path\-like variable is added to the reference counter variable
as soon as it is added more than one time. When an element of a path\-like
variable is not found in the reference counter variable, it means this
element has only be added once to the path\-like variable.
.sp
When an empty string is added as an element in the path\-like variable, it is
added to the reference counter variable even if added only once to
distinguish between an empty path\-like variable and a path\-like variable
containing an empty string as single element.
.UNINDENT
.INDENT 0.0
.TP
.B _LMFILES_
A colon separated list of the full pathname for all loaded \fImodulefiles\fP\&.
.sp
This environment variable is generated by \fBmodule\fP command and
should not be modified externally.
.UNINDENT
.INDENT 0.0
.TP
.B LOADEDMODULES
A colon separated list of all loaded \fImodulefiles\fP\&.
.sp
This environment variable is generated by \fBmodule\fP command and
should not be modified externally.
.UNINDENT
.INDENT 0.0
.TP
.B MODULECONTACT
Email address to contact in case any issue occurs during the interpretation
of modulefiles.
.sp
This environment variable value supersedes the default value set in the
\fI\%contact\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULEPATH
The path that the \fBmodule\fP command searches when looking for
\fImodulefiles\fP\&. Typically, it is set to the main \fImodulefiles\fP directory,
\fB@modulefilesdir@\fP, by the initialization script. \fI\%MODULEPATH\fP
can be set using \fI\%module use\fP or by the module initialization
script to search group or personal \fImodulefile\fP directories before or after
the main \fImodulefile\fP directory.
.sp
Path elements registered in the \fI\%MODULEPATH\fP environment variable may
contain reference to environment variables which are converted to their
corresponding value by \fBmodule\fP command each time it looks at the
\fI\%MODULEPATH\fP value. If an environment variable referred in a path
element is not defined, its reference is converted to an empty string.
.UNINDENT
.INDENT 0.0
.TP
.B MODULERCFILE
The location of a global run\-command file(s) containing \fImodulefile\fP specific
setup. See \fI\%Modulecmd startup\fP section for detailed information.
.sp
Several global run\-command files may be defined in this environment variable
by separating each of them by colon character.
.sp
This environment variable value supersedes the default value set in the
\fI\%rcfile\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_ABORT_ON_ERROR
A colon separated list of the module sub\-commands that abort their evaluation
sequence when an error is raised by an evaluated module. When error occurs,
evaluations already done are withdrawn and the remaining modules to evaluate
are skipped.
.sp
Accepted sub\-commands that can be set in value list are:
.INDENT 7.0
.IP \(bu 2
\fI\%load\fP
.IP \(bu 2
\fBml\fP
.IP \(bu 2
\fI\%mod\-to\-sh\fP
.IP \(bu 2
\fI\%purge\fP
.IP \(bu 2
\fI\%reload\fP
.IP \(bu 2
\fI\%switch\fP
.IP \(bu 2
\fI\%switch_unload\fP
.IP \(bu 2
\fI\%try\-load\fP
.IP \(bu 2
\fI\%unload\fP
.UNINDENT
.sp
Module sub\-commands not configured to follow the \fIabort on error\fP behavior,
apply the \fIcontinue on error\fP behavior. In this case if one modulefile
evaluation fails, sequence continues with remaining modulefiles. When
\fI\%\-\-force\fP option is used, \fIcontinue on error\fP behavior applies.
.sp
This environment variable value supersedes the default value set in the
\fI\%abort_on_error\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_ADVANCED_VERSION_SPEC
If set to \fB1\fP, enable advanced module version specifiers (see \fI\%Advanced
module version specifiers\fP section). If set to \fB0\fP, disable advanced
module version specifiers.
.sp
This environment variable value supersedes the default value set in the
\fI\%advanced_version_spec\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_AUTO_HANDLING
If set to \fB1\fP, enable automated module handling mode. If set to \fB0\fP
disable automated module handling mode. Other values are ignored.
.sp
Automated module handling mode consists in additional actions triggered when
loading or unloading a \fImodulefile\fP to satisfy the constraints it declares.
When loading a \fImodulefile\fP, following actions are triggered:
.INDENT 7.0
.IP \(bu 2
Conflict Unload: unload of the \fImodulefiles\fP declared as a
\fI\%conflict\fP of the loading \fImodulefile\fP or if it is the same
\fImodulefile\fP than the one loading but with a different set of variant or
coming from a different modulepath.
.IP \(bu 2
Requirement Load: load of the \fImodulefiles\fP declared as a \fI\%prereq\fP
of the loading \fImodulefile\fP\&.
.IP \(bu 2
Useless Requirement Unload: unload of the \fI\%prereq\fP modulefiles that
have been automatically loaded for either an unloaded conflicting
modulefile or a modulefile part of this useless requirement unloading
batch. Modulefiles are added to this unloading batch only if they are not
required by any other loaded modulefiles and if they are not tagged
\fBkeep\-loaded\fP, \fBsticky\fP or \fBsuper\-sticky\fP\&.
.IP \(bu 2
Dependent Reload: reload of the modulefiles declaring a \fI\%prereq\fP
onto loading \fImodulefile\fP or declaring a \fI\%prereq\fP or a \fI\%via
requirement\fP onto a \fImodulefile\fP part of this
reloading batch.
.UNINDENT
.sp
When unloading a \fImodulefile\fP, following actions are triggered:
.INDENT 7.0
.IP \(bu 2
Dependent Unload: unload of the modulefiles declaring a non\-optional
\fI\%prereq\fP or a \fI\%via requirement\fP onto
unloaded modulefile or a modulefile part of this unloading batch. A
\fI\%prereq\fP modulefile is considered optional if the \fI\%prereq\fP
definition order is made of multiple modulefiles and at least one
alternative modulefile is loaded.
.IP \(bu 2
Useless Requirement Unload: unload of the \fI\%prereq\fP modulefiles that
have been automatically loaded for either the unloaded modulefile, an
unloaded dependent modulefile or a modulefile part of this useless
requirement unloading batch. Modulefiles are added to this unloading batch
only if they are not required by any other loaded modulefiles and if they
are not tagged \fBkeep\-loaded\fP, \fBsticky\fP or \fBsuper\-sticky\fP\&.
.IP \(bu 2
Dependent Reload: reload of the modulefiles declaring a \fI\%conflict\fP
or an optional \fI\%prereq\fP onto either the unloaded modulefile, an
unloaded dependent or an unloaded useless requirement or declaring a
\fI\%prereq\fP or a \fI\%via requirement\fP onto a
modulefile part of this reloading batch.
.UNINDENT
.sp
In case a loaded \fImodulefile\fP has some of its declared constraints
unsatisfied (pre\-required modulefile not loaded or conflicting modulefile
loaded for instance), this loaded \fImodulefile\fP is excluded from the automatic
reload actions described above.
.sp
For the specific case of the \fI\%switch\fP sub\-command, where a modulefile
is unloaded to then load another modulefile. Dependent modulefiles to Unload
are merged into the Dependent modulefiles to Reload that are reloaded after
the load of the switched\-to modulefile. Such process also applies to the
Dependent Unload modulefiles of Conflict Unload modules.
.sp
The reload phase of all Dependent Reload modulefiles occurs after the
evaluation of the main \fImodulefile\fP (either load, unload or switch
evaluation).
.sp
The reload phase of a Dependent Reload modulefile is skipped if any of the
following conditions are met:
.INDENT 7.0
.IP \(bu 2
The required modules for this modulefile are not loaded.
.IP \(bu 2
A conflict is detected with the currently loaded environment.
.IP \(bu 2
The enabled modulepaths have changed, and the modulefile is no longer
available.
.UNINDENT
.sp
However, reload is always attempted if the modulefile is tagged as
\fBsuper\-sticky\fP or \fBsticky\fP, and force mode is not enabled. \fIAbort on
error\fP behavior is applied if reload of such module kind fails whatever the
value of the \fI\%abort_on_error\fP configuration option. Dependent
Reload modulefiles whose reload has been skipped are treated as Dependent
Unload modulefiles.
.sp
Conflict Unload mechanism is activated only if \fI\%conflict_unload\fP
configuration option is also enabled.
.sp
This environment variable value supersedes the default value set on the
\fI\%auto_handling\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-auto\fP and \fI\%\-\-no\-auto\fP
command line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_AVAIL_INDEPTH
If set to \fB1\fP, enable in depth search results for \fI\%avail\fP
sub\-command. If set to \fB0\fP disable \fI\%avail\fP sub\-command in depth
mode. Other values are ignored.
.sp
When in depth mode is enabled, modulefiles and directories contained in
directories matching search query are also included in search results. When
disabled these modulefiles and directories contained in matching directories
are excluded.
.sp
This environment variable value supersedes the default value set in the
\fI\%avail_indepth\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-indepth\fP and
\fI\%\-\-no\-indepth\fP command line switches override this environment
variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_AVAIL_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%avail\fP sub\-command regular output mode.
.sp
Accepted elements that can be set in value list are:
.INDENT 7.0
.IP \(bu 2
\fBalias\fP: module aliases.
.IP \(bu 2
\fBprovided\-alias\fP: show module aliases and evaluate all modulefiles to get
aliases provided by them.
.IP \(bu 2
\fBdirwsym\fP: directories associated with symbolic versions.
.IP \(bu 2
\fBhidden\fP: show all hidden modules.
.IP \(bu 2
\fBindesym\fP: symbolic versions reported independently from the module or
directory they are attached to.
.IP \(bu 2
\fBkey\fP: legend appended at the end of the output to explain it.
.IP \(bu 2
\fBmodulepath\fP: modulepath names set as header prior the list of available
modules found in them.
.IP \(bu 2
\fBsym\fP: symbolic versions associated with available modules.
.IP \(bu 2
\fBtag\fP: tags associated with available modules.
.IP \(bu 2
\fBvariant\fP: variants and their possible values associated with available
modules.
.IP \(bu 2
\fBvariantifspec\fP: like \fBvariant\fP but only if a variant has been
specified in search query.
.IP \(bu 2
\fBvia\fP: mention next to modulepath name which loaded module enables it if
any.
.UNINDENT
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
In case the \fBmodulepath\fP element is missing from value list, the available
modules from global/user rc and all enabled modulepaths are reported as a
single list.
.sp
When \fBindesym\fP element is set, \fBdirwsym\fP and \fBsym\fP elements are
disabled.
.sp
This environment variable value supersedes the default value set in the
\fI\%avail_output\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_AVAIL_TERSE_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%avail\fP sub\-command terse output mode.
.sp
See \fI\%MODULES_AVAIL_OUTPUT\fP to get the accepted elements that can be
set in value list. Exception for \fBvia\fP element which is not accepted for
terse output mode.
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
This environment variable value supersedes the default value set in the
\fI\%avail_terse_output\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP
command line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_CACHE_BUFFER_BYTES
Size of the buffer used when reading or writing cache files. Accepted values
are integers comprised between 4096 and 1000000.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_CACHE_EXPIRY_SECS
Number of seconds a cache file is considered valid after being generated. For
example, if set to \fB3600\fP it means a cache file expires one hour after
being generated and is then ignored.
.sp
When set to \fB0\fP cache file never expires. Accepted values are integers
comprised between 0 (cache files never expire) and 31536000 (equivalent to
one year duration).
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_CMD
The location of the active module command script.
.sp
This environment variable is generated by \fBmodule\fP command and
should not be modified externally.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_COLLECTION_PIN_VERSION
If set to \fB1\fP, register exact version number of modulefiles when saving a
collection. Otherwise modulefile version number is omitted if it corresponds
to the explicitly set default version and also to the implicit default when
the configuration option \fI\%implicit_default\fP is enabled.
.sp
This environment variable value supersedes the default value set in the
\fI\%collection_pin_version\fP configuration option. It can be defined
with the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_COLLECTION_PIN_TAG
If set to \fB1\fP, register all tags applying to modulefiles when saving a
collection. Otherwise only the extra tags set through the \fI\%\-\-tag\fP
option and tags resulting from specific module states (like \fBauto\-loaded\fP
and \fBkeep\-loaded\fP tags) are recorded in collection. Note that the
\fBnearly\-forbidden\fP tag due to its temporal meaning is not saved in
collection even when this configuration option is enabled.
.sp
This environment variable value supersedes the default value set in the
\fI\%collection_pin_tag\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_COLLECTION_TARGET
The collection target that determines what collections are valid thus
reachable on the current system.
.sp
Collection directory may sometimes be shared on multiple machines which may
use different modules setup. For instance modules users may access with the
same \fBHOME\fP directory multiple systems using different OS versions.
When it happens a collection made on machine 1 may be erroneous on machine 2.
.sp
When a target is set, only the collections made for that target are
available to the \fI\%restore\fP, \fI\%savelist\fP, \fI\%saveshow\fP,
\fI\%saverm\fP, \fI\%stash\fP, \fI\%stashpop\fP, \fI\%stashlist\fP,
\fI\%stashshow\fP, and \fI\%stashrm\fP sub\-commands. Saving a collection
registers the target footprint by suffixing the collection filename with
\fB\&.$MODULES_COLLECTION_TARGET\fP\&. The collection target is not involved when
collection is specified as file path on the \fI\%saveshow\fP,
\fI\%restore\fP and \fI\%save\fP sub\-commands.
.sp
For example, the \fI\%MODULES_COLLECTION_TARGET\fP variable may be set with
results from commands like \fBlsb_release\fP, \fBhostname\fP,
\fBdnsdomainname\fP, etc.
.sp
This environment variable value supersedes the default value set in the
\fI\%collection_target\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_COLOR
Defines if output should be colored or not. Accepted values are \fBnever\fP,
\fBauto\fP and \fBalways\fP\&.
.sp
When color mode is set to \fBauto\fP, output is colored only if the standard
error output channel is attached to a terminal.
.sp
This environment variable value supersedes the default value set in the
\fI\%color\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-color\fP command line switch
overrides this environment variable.
.sp
\fBNO_COLOR\fP, \fBCLICOLOR\fP and \fBCLICOLOR_FORCE\fP
environment variables are also honored to define color mode. The \fBnever\fP
mode is set if \fBNO_COLOR\fP is defined (regardless of its value) or if
\fBCLICOLOR\fP equals to \fB0\fP\&. If \fBCLICOLOR\fP is set to another
value, it corresponds to the \fBauto\fP mode. The \fBalways\fP mode is set if
\fBCLICOLOR_FORCE\fP is set to a value different than \fB0\fP\&.
\fBNO_COLOR\fP variable prevails over \fBCLICOLOR\fP and
\fBCLICOLOR_FORCE\fP\&. Color mode set with these three variables is
superseded by mode set with \fI\%MODULES_COLOR\fP environment variable or
with \fI\%\-\-color\fP command line switch..
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_COLORS
Specifies the colors and other attributes used to highlight various parts of
the output. Its value is a colon\-separated list of output items associated to
a Select Graphic Rendition (SGR) code. It follows the same syntax than
\fBLS_COLORS\fP\&.
.sp
Output items are designated by keys. Items able to be colorized are:
highlighted element (\fBhi\fP), debug information (\fBdb\fP), trace information
(\fBtr\fP), tag separator (\fBse\fP); Error (\fBer\fP), warning (\fBwa\fP), module
error (\fBme\fP) and info (\fBin\fP) message prefixes; Modulepath (\fBmp\fP),
directory (\fBdi\fP), module alias (\fBal\fP), module variant (\fBva\fP), module
symbolic version (\fBsy\fP), module \fBdefault\fP version (\fBde\fP) and modulefile
command (\fBcm\fP).
.sp
\fI\%Module tags\fP can also be colorized. The key to set in the color palette to
get a graphical rendering of a tag is the tag name or the tag abbreviation if
one is defined for tag. The SGR code applied to a tag name is ignored if an
abbreviation is set for this tag thus the SGR code should be defined for this
abbreviation to get a graphical rendering. Each basic tag has by default a
key set in the color palette, based on its abbreviated string: auto\-loaded
(\fBaL\fP), forbidden (\fBF\fP), hidden and hidden\-loaded (\fBH\fP), loaded
(\fBL\fP), nearly\-forbidden (\fBnF\fP), sticky (\fBS\fP), super\-sticky (\fBsS\fP),
keep\-loaded (\fBkL\fP) and warning (\fBW\fP).
.sp
See the Select Graphic Rendition (SGR) section in the documentation of the
text terminal that is used for permitted values and their meaning as
character attributes. These substring values are integers in decimal
representation and can be concatenated with semicolons. Modules takes care of
assembling the result into a complete SGR sequence (\fB\e33[...m\fP). Common
values to concatenate include \fB1\fP for bold, \fB4\fP for underline, \fB30\fP to
\fB37\fP for foreground colors and \fB90\fP to \fB97\fP for 16\-color mode
foreground colors. See also \X'tty: link https://en.wikipedia.org/wiki/ANSI_escape_code#Select_Graphic_Rendition_parameters'\fI\%https://en.wikipedia.org/wiki/ANSI_escape_code#Select_Graphic_Rendition_parameters\fP\X'tty: link'
for a complete SGR code reference.
.sp
No graphical rendition will be applied to an output item that could normally
be colored but which is not defined in the color set. Thus if
\fI\%MODULES_COLORS\fP is defined empty, no output will be colored at all.
.sp
This environment variable value supersedes the default value set in the
\fI\%colors\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_CONFLICT_UNLOAD
If set to \fB1\fP, enable automated unload of conflicting modules when loading
a module. If set to \fB0\fP, disable this automated conflict unload mechanism.
.sp
Conflict Unload is a mechanism part of the \fI\%automated module handling
mode\fP\&. To activate this mechanism,
\fI\%auto_handling\fP configuration option should also be enabled.
.sp
This environment variable value supersedes the default value set in the
\fI\%conflict_unload\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_EDITOR
Text editor command name or path for use to open modulefile through the
\fI\%edit\fP sub\-command.
.sp
This environment variable value supersedes the default value set in the
\fI\%editor\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
Text editor could also be defined through the \fBVISUAL\fP or
\fBEDITOR\fP environment variables. These environment variables are
overridden by \fI\%MODULES_EDITOR\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_EXTENDED_DEFAULT
If set to \fB1\fP, a specified module version is matched against starting
portion of existing module versions, where portion is a substring separated
from the rest of the version string by a \fB\&.\fP character. For example
specified modules \fBmod/1\fP and \fBmod/1.2\fP will match existing modulefile
\fBmod/1.2.3\fP\&.
.sp
In case multiple modulefiles match the specified module version and a single
module has to be selected, the explicitly set default version is returned if
it is part of matching modulefiles. Otherwise the implicit default among
matching modulefiles is returned if defined (see
\fI\%MODULES_IMPLICIT_DEFAULT\fP section)
.sp
This environment variable value supersedes the default value set in the
\fI\%extended_default\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_FAMILY_<NAME>
Module name minus version that provides for the \fIname\fP family in currently
loaded environment. This environment variable is defined through the use of
the \fI\%family\fP modulefile command.
.sp
For instance if loading modulefile \fBfoo/1.0\fP defines being member of the
\fBbar\fP family, the \fI\%MODULES_FAMILY_BAR\fP
will be set to the \fBfoo\fP value.
.sp
This environment variable is generated by \fBmodule\fP command and
should not be modified externally.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_HIDE_AUTO_LOADED
If set to \fB1\fP, tag automatically loaded modules \fBhidden\-loaded\fP\&. These
modules will not appear on \fI\%list\fP sub\-command unless \fI\%\-\-all\fP
option is set.
.sp
This environment variable value supersedes the default value set in the
\fI\%hide_auto_loaded\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_ICASE
When module specification are passed as argument to module sub\-commands or
modulefile Tcl commands, defines the case sensitiveness to apply to match
them. When \fI\%MODULES_ICASE\fP is set to \fBnever\fP, a case sensitive
match is applied in any cases. When set to \fBsearch\fP, a case insensitive
match is applied to the \fI\%avail\fP, \fI\%list\fP, \fI\%whatis\fP,
\fI\%paths\fP, \fI\%savelist\fP and \fI\%spider\fP sub\-commands. When
set to \fBalways\fP, a case insensitive match is also applied to the other
module sub\-commands and modulefile Tcl commands for the module specification
they receive as argument.
.sp
This environment variable value supersedes the default value set in the
\fI\%icase\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-icase\fP/\fI\%\-i\fP command line
switches, which correspond to the \fBalways\fP mode, override this environment
variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_IGNORE_CACHE
Ignore (if set to \fB1\fP) or not (if set to \fB0\fP) module cache.
.sp
This environment variable value supersedes the default value set in the
\fI\%ignore_cache\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-ignore\-cache\fP command line
switch overrides this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_IGNORE_USER_RC
Skip evaluation (if set to \fB1\fP) or not (if set to \fB0\fP) of user\-specific
module rc file (\fB$HOME/.modulerc\fP).
.sp
This environment variable value supersedes the default value set in the
\fI\%ignore_user_rc\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-ignore\-user\-rc\fP command line
switch overrides this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_IMPLICIT_DEFAULT
Defines (if set to \fB1\fP) or not (if set to \fB0\fP) an implicit default
version for modules without a default version explicitly defined (see
\fI\%Locating Modulefiles\fP section in the \fI\%modulefile\fP man page).
.sp
Without either an explicit or implicit default version defined a module must
be fully qualified (version should be specified in addition to its name) to
get:
.INDENT 7.0
.IP \(bu 2
targeted by module \fI\%load\fP, \fI\%switch\fP, \fI\%display\fP,
\fI\%help\fP, \fI\%test\fP and \fI\%path\fP sub\-commands.
.IP \(bu 2
restored from a collection, unless already loaded in collection\-specified
order.
.IP \(bu 2
automatically loaded by \fI\%automated module handling
mechanisms\fP when declared as module requirement,
with \fI\%prereq\fP or \fI\%module load\fP modulefile commands.
.UNINDENT
.sp
An error is returned in the above situations if either no explicit or
implicit default version is defined.
.sp
This environment variable value supersedes the default value set in the
\fI\%implicit_default\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. This environment variable is ignored if
\fI\%implicit_default\fP has been declared locked in
\fI\%locked_configs\fP configuration option.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_IMPLICIT_REQUIREMENT
Defines (if set to \fB1\fP) or not (if set to \fB0\fP) an implicit prereq or
conflict requirement onto modules specified respectively on
\fI\%module load\fP or \fI\%module unload\fP commands in
modulefile. When enabled an implicit conflict requirement onto switched\-off
module and a prereq requirement onto switched\-on module are also defined for
\fI\%module switch\fP commands used in modulefile.
.sp
This environment variable value supersedes the default value set in the
\fI\%implicit_requirement\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fB\-\-not\-req\fP option, applied to a
\fI\%module\fP command in a modulefile, overrides this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_LIST_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%list\fP sub\-command regular output mode.
.sp
Accepted elements that can be set in value list are:
.INDENT 7.0
.IP \(bu 2
\fBalias\fP: module aliases targeting loaded modules.
.IP \(bu 2
\fBheader\fP: sentence to introduce the list of loaded modules or to state
that no modules are loaded currently.
.IP \(bu 2
\fBhidden\fP: show hidden loaded modules.
.IP \(bu 2
\fBidx\fP: index position of each loaded module.
.IP \(bu 2
\fBindesym\fP: symbolic versions reported independently from the loaded
module they are attached to.
.IP \(bu 2
\fBkey\fP: legend appended at the end of the output to explain it.
.IP \(bu 2
\fBvariant\fP: variant values selected for loaded modules.
.IP \(bu 2
\fBsym\fP: symbolic versions associated with loaded modules.
.IP \(bu 2
\fBtag\fP: tags associated with loaded modules.
.UNINDENT
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
This environment variable value supersedes the default value set in the
\fI\%list_output\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_LIST_TERSE_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%list\fP sub\-command terse output mode.
.sp
See \fI\%MODULES_LIST_OUTPUT\fP to get the accepted elements that can be
set in value list.
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
This environment variable value supersedes the default value set in the
\fI\%list_terse_output\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_LOGGED_EVENTS
A colon separated list of the events to log. Accepted events that can be set
in value list are:
.INDENT 7.0
.IP \(bu 2
\fBauto_eval\fP: log automatically triggered modulefile evaluations
.IP \(bu 2
\fBrequested_eval\fP: log modulefile evaluations directly requested by user
.IP \(bu 2
\fBrequested_cmd\fP: log module commands directly requested by user
.UNINDENT
.sp
This environment variable value supersedes the default value set in the
\fI\%logged_events\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. This environment variable is ignored if
\fI\%logged_events\fP has been declared locked in
\fI\%locked_configs\fP configuration option.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_LOGGER
Command to log informational messages. The value of this variable is composed
of a logger command name or path eventually followed by command\-line options.
.sp
This environment variable value supersedes the default value set in the
\fI\%logger\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. This environment variable is ignored if
\fI\%logger\fP has been declared locked in \fI\%locked_configs\fP
configuration option.
.sp
If \fI\%MODULES_LOGGER\fP variable is set to an empty string, logger
will not be launched.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_MCOOKIE_CHECK
If set to \fBeval\fP, the Modules magic cookie (i.e., \fB#%Module\fP
file signature) is only checked to determine if a file is a modulefile when
evaluating these files. If set to \fBalways\fP, the Modules magic cookie is
also checked when searching for modules.
.sp
The \fBeval\fP mode is made to significantly reduce file checks when walking
through modulepaths to search for \fImodulefiles\fP\&. Special care should be given
to the content of modulepaths when this \fBeval\fP mode is set as the following
kind of files are included in search results:
.INDENT 7.0
.IP \(bu 2
\fImodulefiles\fP with a magic cookie requiring a higher version of
\fBmodulecmd.tcl\fP
.IP \(bu 2
files not beginning with the magic cookie \fB#%Module\fP
.IP \(bu 2
read\-protected files
.UNINDENT
.sp
When a \fI\%module cache\fP file is available for a given
modulepath, \fBeval\fP mode is not applied as cache content is generated in
\fBalways\fP mode.
.sp
This environment variable value supersedes the default value set in the
\fI\%mcookie_check\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_MCOOKIE_VERSION_CHECK
If set to \fB1\fP, the version set in the Modules magic cookie in modulefile
is checked against the current version of \fBmodulecmd.tcl\fP to determine
if the modulefile can be evaluated.
.sp
When a \fI\%module cache\fP file is available for a given
modulepath, version check is considered enabled as cache content is generated
in this mode.
.sp
This environment variable value supersedes the default value set in the
\fI\%mcookie_version_check\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_ML
If set to \fB1\fP, define \fBml\fP command when initializing Modules (see
\fI\%Package Initialization\fP section). If set to \fB0\fP, \fBml\fP command is
not defined.
.sp
This environment variable value supersedes the default value set in the
\fI\%ml\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
To enable or disable \fBml\fP command, \fI\%MODULES_ML\fP should be set
prior Modules initialization or the \fI\%ml\fP configuration option should
be set in the \fBinitrc\fP configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_NEARLY_FORBIDDEN_DAYS
Number of days a module is considered \fInearly forbidden\fP prior reaching its
expiry date set by \fI\%module\-forbid\fP modulefile command. When a \fInearly
forbidden\fP module is evaluated a warning message is issued to inform module
will soon be forbidden. If set to \fB0\fP, modules will never be considered
\fInearly forbidden\fP\&. Accepted values are integers comprised between 0 and 365.
.sp
This environment variable value supersedes the default value set in the
\fI\%nearly_forbidden_days\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_PAGER
Text viewer for use to paginate message output if error output stream is
attached to a terminal. The value of this variable is composed of a pager
command name or path eventually followed by command\-line options.
.sp
This environment variable value supersedes the default value set in the
\fI\%pager\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
If \fI\%MODULES_PAGER\fP variable is set to an empty string or to the value
\fBcat\fP, pager will not be launched.
.sp
Pager is never launched if \fBmodulecmd.tcl\fP program is run for scripting
language rather shells.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_PROTECTED_ENVVARS
A colon separated list of environment variable names that should not be
modified by any modulefile command.
.sp
Prevents modifications by \fI\%append\-path\fP, \fI\%prepend\-path\fP,
\fI\%remove\-path\fP, \fI\%setenv\fP and \fI\%unsetenv\fP\&. When these
modulefile commands attempt to modify a protected environment variable,
a warning message is emitted and modification is ignored.
.sp
This environment variable value supersedes the default value set in the
\fI\%protected_envvars\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_QUARANTINE_SUPPORT
If set to \fB1\fP, produces the shell code for quarantine mechanism when the
\fBautoinit\fP sub\-command generates the \fBmodule\fP shell
function.
.sp
The generated shell code for quarantine mechanism indirectly passes the
environment variable defined in \fI\%MODULES_RUN_QUARANTINE\fP to the
\fBmodulecmd.tcl\fP script to protect its run\-time environment from
side\-effect coming from the current definition of these variables.
.sp
To enable quarantine support, \fI\%MODULES_QUARANTINE_SUPPORT\fP should be
set to \fB1\fP prior Modules initialization or the
\fI\%quarantine_support\fP configuration should be set to \fB1\fP in the
\fBinitrc\fP configuration file.
.sp
Generated code for quarantine mechanism sets the
\fI\%__MODULES_QUARANTINE_SET\fP environment variable when calling the
\fBmodulecmd.tcl\fP script to make it restore the environment variable put
in quarantine.
.sp
This environment variable value supersedes the default value set in the
\fI\%quarantine_support\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_REDIRECT_OUTPUT
If set to \fB0\fP, the output generated by module command is kept on stderr and
not redirected to stdout channel.
.sp
This environment variable value supersedes the default value set in the
\fI\%redirect_output\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fI\%\-\-redirect\fP and
\fI\%\-\-no\-redirect\fP command line switches override this environment
variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_REQUIRE_VIA
If set to \fB1\fP, consider loaded module that enables a modulepath (through
the use of the modulefile commands \fI\%module use\fP,
\fI\%append\-path MODULEPATH\fP, or \fI\%prepend\-path
MODULEPATH\fP) a requirement for loaded modules stored in this
modulepath. If set to \fB0\fP, no dependency is made between these modules.
.sp
This environment variable value supersedes the default value set in the
\fI\%require_via\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_RESET_TARGET_STATE
Defines behavior of \fI\%reset\fP sub\-command. When set to \fB__init__\fP,
initial environment is restored. When set to \fB__purge__\fP, \fI\%reset\fP
performs a \fI\%purge\fP sub\-command. Any other value designates a name
collection to \fI\%restore\fP\&.
.sp
This environment variable value supersedes the default value set in the
\fI\%reset_target_state\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_RUN_QUARANTINE
A space separated list of environment variable names that should be passed
indirectly to \fBmodulecmd.tcl\fP to protect its run\-time environment from
side\-effect coming from their current definition.
.sp
If the quarantine mechanism has been included in \fBmodule\fP shell
function (see \fI\%MODULES_QUARANTINE_SUPPORT\fP), each variable found in
\fI\%MODULES_RUN_QUARANTINE\fP will have its value emptied or set to the
value of the corresponding \fI\%MODULES_RUNENV_<VAR>\fP variable when
defining \fBmodulecmd.tcl\fP run\-time environment.
.sp
Original values of these environment variables set in quarantine are passed
to \fBmodulecmd.tcl\fP via \fI\%__MODULES_QUAR_<VAR>\fP variables.
.sp
This environment variable value supersedes the default value set in the
\fI\%run_quarantine\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_RUNENV_<VAR>
Value to set to environment variable \fB<VAR>\fP for
\fBmodulecmd.tcl\fP run\-time execution if \fB<VAR>\fP is referred in
\fI\%MODULES_RUN_QUARANTINE\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SEARCH_MATCH
When searching for modules with \fI\%avail\fP, \fI\%list\fP,
\fI\%spider\fP or collections with \fI\%savelist\fP sub\-commands, defines
the way query string should match against available module/collection names.
With \fBstarts_with\fP value, returned modules/collections are those whose
name begins by search query string. When set to \fBcontains\fP, any
modules/collections whose fully qualified name contains search query string
are returned.
.sp
This environment variable value supersedes the default value set in the
\fI\%search_match\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-starts\-with\fP and
\fI\%\-\-contains\fP command line switches override this environment
variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SET_SHELL_STARTUP
If set to \fB1\fP, defines when \fBmodule\fP command initializes the shell
startup file to ensure that the \fBmodule\fP command is still defined in
sub\-shells. Setting shell startup file means defining the \fBENV\fP and
\fBBASH_ENV\fP environment variable to the Modules bourne shell
initialization script. If set to \fB0\fP, shell startup file is not defined.
.sp
This environment variable value supersedes the default value set in the
\fI\%set_shell_startup\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
To enable shell startup file, \fI\%MODULES_SET_SHELL_STARTUP\fP should be
set to \fB1\fP prior Modules initialization or the \fI\%set_shell_startup\fP
configuration option should be set to \fB1\fP in the \fBinitrc\fP
configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SHELLS_WITH_KSH_FPATH
A list of shell on which the \fBFPATH\fP environment variable should be
defined at initialization time to point to the \fBksh\-functions\fP
directory where the ksh initialization script for module command is located.
It enables for the listed shells to get module function defined when starting
ksh as sub\-shell from there.
.sp
Accepted values are a list of shell among \fIsh\fP, \fIbash\fP, \fIcsh\fP, \fItcsh\fP and
\fIfish\fP separated by colon character (\fB:\fP).
.sp
This environment variable value supersedes the default value set in the
\fI\%shells_with_ksh_fpath\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.sp
To enable the setup of \fBFPATH\fP for some shells,
\fI\%MODULES_SHELLS_WITH_KSH_FPATH\fP should be set to the list of these
shells prior Modules initialization or the \fI\%shells_with_ksh_fpath\fP
configuration option should be set to the list of these shells in the
\fBinitrc\fP configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SILENT_SHELL_DEBUG
If set to \fB1\fP, disable any \fBxtrace\fP or \fBverbose\fP debugging property set
on current shell session for the duration of either the \fBmodule\fP
command or the module shell initialization script. Only applies to Bourne
Shell (sh) and its derivatives.
.sp
This environment variable value supersedes the default value set in the
\fI\%silent_shell_debug\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
To generate the code to silence shell debugging property in the
\fBmodule\fP shell function, \fI\%MODULES_SILENT_SHELL_DEBUG\fP should
be set to \fB1\fP prior Modules initialization or the
\fI\%silent_shell_debug\fP configuration option should be set to \fB1\fP in
the \fBinitrc\fP configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SITECONFIG
Location of a site\-specific configuration script to source into
\fBmodulecmd.tcl\fP\&. See \fI\%Site\-specific configuration\fP section for
details.
.sp
This environment variable value supersedes the default value set in the
\fI\%extra_siteconfig\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. This environment variable is ignored if
\fI\%extra_siteconfig\fP has been declared locked in
\fI\%locked_configs\fP configuration option.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SOURCE_CACHE
If set to \fB1\fP, cache content of files evaluated in modulefile through
\fBsource(n)\fP Tcl command. When same file is sourced multiple times,
cached content is reused rather reading file again.
.sp
This environment variable value supersedes the default value set in the
\fI\%source_cache\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SPIDER_INDEPTH
If set to \fB1\fP, enable in depth search results for \fI\%spider\fP
sub\-command. If set to \fB0\fP disable \fI\%spider\fP sub\-command in depth
mode. Other values are ignored.
.sp
When in depth mode is enabled, modulefiles and directories contained in
directories matching search query are also included in search results. When
disabled these modulefiles and directories contained in matching directories
are excluded.
.sp
This environment variable value supersedes the default value set in the
\fI\%spider_indepth\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-indepth\fP and
\fI\%\-\-no\-indepth\fP command line switches override this environment
variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SPIDER_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%spider\fP sub\-command regular output mode.
.sp
Accepted elements that can be set in value list are:
.INDENT 7.0
.IP \(bu 2
\fBalias\fP: module aliases.
.IP \(bu 2
\fBprovided\-alias\fP: show module aliases and evaluate all modulefiles to get
aliases provided by them.
.IP \(bu 2
\fBdirwsym\fP: directories associated with symbolic versions.
.IP \(bu 2
\fBhidden\fP: show all hidden modules.
.IP \(bu 2
\fBindesym\fP: symbolic versions reported independently from the module or
directory they are attached to.
.IP \(bu 2
\fBkey\fP: legend appended at the end of the output to explain it.
.IP \(bu 2
\fBmodulepath\fP: modulepath names set as header prior the list of available
modules found in them.
.IP \(bu 2
\fBsym\fP: symbolic versions associated with available modules.
.IP \(bu 2
\fBtag\fP: tags associated with available modules.
.IP \(bu 2
\fBvariant\fP: variants and their possible values associated with available
modules.
.IP \(bu 2
\fBvariantifspec\fP: like \fBvariant\fP but only if a variant has been
specified in search query.
.IP \(bu 2
\fBvia\fP: mention next to modulepath name which module enables it if any.
.UNINDENT
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
In case the \fBmodulepath\fP element is missing from value list, the available
modules from global/user rc and all enabled modulepaths are reported as a
single list.
.sp
When \fBindesym\fP element is set, \fBdirwsym\fP and \fBsym\fP elements are
disabled.
.sp
This environment variable value supersedes the default value set in the
\fI\%spider_output\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP command
line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_SPIDER_TERSE_OUTPUT
A colon separated list of the elements to report in addition to module names
on \fI\%spider\fP sub\-command terse output mode.
.sp
See \fI\%MODULES_SPIDER_OUTPUT\fP to get the accepted elements that can be
set in value list. Exception for \fBvia\fP element which is not accepted for
terse output mode.
.sp
The order of the elements in the list does not matter. Module names are the
only content reported when \fILIST\fP is set to an empty value.
.sp
This environment variable value supersedes the default value set in the
\fI\%spider_terse_output\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command. The \fI\%\-\-output\fP/\fI\%\-o\fP
command line switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_STICKY_PURGE
When unloading a sticky or super\-sticky module during a module
\fI\%purge\fP, raise an \fBerror\fP or emit a \fBwarning\fP message or be
\fBsilent\fP\&.
.sp
This environment variable value supersedes the default value set in the
\fI\%sticky_purge\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_TAG_ABBREV
Specifies the abbreviation strings used to report module tags (see \fI\%Module
tags\fP section). Its value is a colon\-separated list of module tag names
associated to an abbreviation string (e.g. \fItagname=abbrev\fP).
.sp
If a tag is associated to an empty string abbreviation, this tag will not be
reported. In case the whole \fI\%MODULES_TAG_ABBREV\fP environment variable
is set to an empty string, tags are reported but not abbreviated.
.sp
This environment variable value supersedes the default value set in the
\fI\%tag_abbrev\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_TAG_COLOR_NAME
Specifies the tag names or abbreviations whose graphical rendering should be
applied over themselves instead of being applied over the name of the module
they are attached to. Value of \fI\%MODULES_TAG_COLOR_NAME\fP is a
colon\-separated list of module tag names or abbreviation strings (see \fI\%Module
tags\fP section).
.sp
When a select graphic rendition is defined for a tag name or a tag
abbreviation string, it is applied over the module name associated with the
tag and tag name or abbreviation is not displayed. When listed in
\fI\%MODULES_TAG_COLOR_NAME\fP environment variable, a tag name or
abbreviation is displayed and select graphic rendition is applied over it.
.sp
This environment variable value supersedes the default value set in the
\fI\%tag_color_name\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_TCL_LINTER
Command name or path for use to check syntax of modulefile through the
\fI\%lint\fP sub\-command.
.sp
This environment variable value supersedes the default value set in the
\fI\%tcl_linter\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_TERM_BACKGROUND
Inform Modules of the terminal background color to determine if the color set
for dark background or the color set for light background should be used to
color output in case no specific color set is defined with the
\fI\%MODULES_COLORS\fP variable. Accepted values are \fBdark\fP and
\fBlight\fP\&.
.sp
This environment variable value supersedes the default value set in the
\fI\%term_background\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_TERM_WIDTH
Specifies the number of columns of the output. If set to \fB0\fP, the output
width will be the full terminal width, which is automatically detected by
the module command. Accepted values are integers comprised between 0 and
1000.
.sp
This environment variable value supersedes the default value set in the
\fI\%term_width\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-width\fP/\fI\%\-w\fP command line
switches override this environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_UNIQUE_NAME_LOADED
If set to \fB1\fP, allows only one module loaded per module name. A conflict is
raised when loading a module whose name or alternative names are shared by an
already loaded module.
.sp
This environment variable value supersedes the default value set in the
\fI\%unique_name_loaded\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_UNLOAD_MATCH_ORDER
When a module unload request matches multiple loaded modules, unload firstly
loaded module or lastly loaded module. Accepted values are \fBreturnfirst\fP
and \fBreturnlast\fP\&.
.sp
This environment variable value supersedes the default value set in the
\fI\%unload_match_order\fP configuration option. It can be defined with
the \fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_VARIANT_SHORTCUT
Specifies the shortcut characters that could be used to specify and report
module variants (see \fI\%Module variants\fP section). Its value is a
colon\-separated list of variant names associated to a shortcut character
(e.g., \fIvariantname=shortcutchar\fP).
.sp
A variant shortcut must be of one character length and must avoid characters
used for other concerns or in module names or version specifications (i.e.,
\fI[\-+~/@=:,a\-zA\-Z0\-9]\fP).
.sp
If a shortcut is associated to an empty string or an invalid character, this
shortcut definition will be ignored.
.sp
This environment variable value supersedes the default value set in the
\fI\%variant_shortcut\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_VERBOSITY
Defines the verbosity level of the module command. Available verbosity levels
from the least to the most verbose are:
.INDENT 7.0
.IP \(bu 2
\fBsilent\fP: turn off error, warning and informational messages but does not
affect module command output result.
.IP \(bu 2
\fBconcise\fP: enable error and warning messages but disable informational
messages.
.IP \(bu 2
\fBnormal\fP: turn on informational messages, like a report of the additional
module evaluations triggered by loading or unloading modules, aborted
evaluation issues or a report of each module evaluation occurring during a
\fI\%restore\fP or \fI\%source\fP sub\-commands.
.IP \(bu 2
\fBverbose\fP: add additional informational messages, like a systematic
report of the loading or unloading module evaluations.
.IP \(bu 2
\fBverbose2\fP: report loading or unloading module evaluations of
hidden\-loaded modules, report if loading module is already loaded or if
unloading module is not loaded.
.IP \(bu 2
\fBtrace\fP: provide details on module searches, resolutions, selections and
evaluations.
.IP \(bu 2
\fBdebug\fP: print debugging messages about module command execution.
.IP \(bu 2
\fBdebug2\fP: report \fBmodulecmd.tcl\fP procedure calls in addition to
printing debug messages.
.UNINDENT
.sp
This environment variable value supersedes the default value set in the
\fI\%verbosity\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command. The \fI\%\-\-silent\fP, \fI\%\-\-verbose\fP,
\fI\%\-\-debug\fP and \fI\%\-\-trace\fP command line switches override this
environment variable.
.UNINDENT
.INDENT 0.0
.TP
.B MODULES_WA_277
If set to \fB1\fP prior to Modules package initialization, enables workaround
for Tcsh history issue (see \X'tty: link https://github.com/envmodules/modules/issues/277'\fI\%https://github.com/envmodules/modules/issues/277\fP\X'tty: link').
This issue leads to erroneous history entries under Tcsh shell. When
workaround is enabled, an alternative \fImodule\fP alias is defined which fixes
the history mechanism issue. However the alternative definition of the
\fImodule\fP alias weakens shell evaluation of the code produced by modulefiles.
Characters with a special meaning for Tcsh shell (like \fB{\fP and \fB}\fP) may
not be used anymore in shell alias definition otherwise the evaluation of the
code produced by modulefiles will return a syntax error.
.sp
This environment variable value supersedes the default value set in the
\fI\%wa_277\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.sp
To enable this workaround, \fI\%MODULES_WA_277\fP should be set to \fB1\fP
prior Modules initialization or the \fI\%wa_277\fP configuration option
should be set to \fB1\fP in the \fBinitrc\fP configuration file.
.UNINDENT
.INDENT 0.0
.TP
.B MODULESHOME
The location of the main Modules package file directory containing module
command initialization scripts, the executable program \fBmodulecmd.tcl\fP,
and a directory containing a collection of main \fImodulefiles\fP\&.
.sp
This environment variable value supersedes the default value set in the
\fI\%home\fP configuration option. It can be defined with the
\fI\%config\fP sub\-command.
.UNINDENT
.SH FILES
.sp
\fB@prefix@\fP
.INDENT 0.0
.INDENT 3.5
The \fI\%MODULESHOME\fP directory.
.UNINDENT
.UNINDENT
.sp
\fB@etcdir@/initrc\fP
.INDENT 0.0
.INDENT 3.5
The configuration file evaluated by \fBmodulecmd.tcl\fP when it initializes
to enable the default modulepaths, load the default modules and set
\fBmodule\fP command configuration.
.sp
\fBinitrc\fP is a \fI\%modulefile\fP so it is written as a Tcl script and
defines modulepaths to enable with \fI\%module use\fP, modules to
load with \fI\%module load\fP and configuration to apply with
\fI\%module config\fP\&. As any modulefile \fBinitrc\fP must begin
with the Modules magic cookie (i.e., \fB#%Module\fP file signature).
.sp
\fBinitrc\fP is optional. When this configuration file is present it is
evaluated after the \fBmodulespath\fP configuration file. See the
\fI\%Package Initialization\fP section for details.
.UNINDENT
.UNINDENT
.sp
\fB@etcdir@/modulespath\fP
.INDENT 0.0
.INDENT 3.5
The configuration file evaluated by \fBmodulecmd.tcl\fP when it initializes
to enable the default modulepaths. This file contains the list of modulepaths
separated by either newline or colon characters.
.sp
\fBmodulespath\fP is optional. When this configuration file is present it
is evaluated before the \fBinitrc\fP configuration file. See the
\fI\%Package Initialization\fP section for details.
.UNINDENT
.UNINDENT
.sp
\fB@etcdir@/siteconfig.tcl\fP
.INDENT 0.0
.INDENT 3.5
The site\-specific configuration script of \fBmodulecmd.tcl\fP\&. An
additional configuration script could be defined using the
\fI\%MODULES_SITECONFIG\fP environment variable. See \fI\%Site\-specific configuration\fP for detailed information.
.UNINDENT
.UNINDENT
.sp
\fB@etcdir@/rc\fP
.INDENT 0.0
.INDENT 3.5
The system\-wide modules rc file. The location of this file can be changed
using the \fI\%MODULERCFILE\fP environment variable as described above.
.UNINDENT
.UNINDENT
.sp
\fB$HOME/.modulerc\fP
.INDENT 0.0
.INDENT 3.5
The user specific modules rc file.
.UNINDENT
.UNINDENT
.sp
\fB$HOME/.module\fP
.INDENT 0.0
.INDENT 3.5
The user specific collection directory.
.UNINDENT
.UNINDENT
.sp
\fB@modulefilesdir@\fP
.INDENT 0.0
.INDENT 3.5
The directory for system\-wide \fImodulefiles\fP\&. The location of the directory
can be changed using the \fI\%MODULEPATH\fP environment variable as
described above.
.UNINDENT
.UNINDENT
.sp
\fB<modulepath>/.modulerc\fP
.INDENT 0.0
.INDENT 3.5
Modulepath\-specific module rc file.
.UNINDENT
.UNINDENT
.sp
\fB<modulepath>/.modulecache\fP
.INDENT 0.0
.INDENT 3.5
Modulepath\-specific \fI\%module cache\fP file.
.UNINDENT
.UNINDENT
.sp
\fB@libexecdir@/modulecmd.tcl\fP
.INDENT 0.0
.INDENT 3.5
The \fImodulefile\fP interpreter that gets executed upon each invocation
of \fBmodule\fP\&.
.UNINDENT
.UNINDENT
.sp
\fB@initdir@/<shell>\fP
.INDENT 0.0
.INDENT 3.5
The Modules package initialization file sourced into the user\(aqs environment.
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
\fI\%ml\fP, \fI\%modulefile\fP, \fI\%envml\fP
.SH COPYRIGHT
1996-2025, Modules Contributors
.\" Generated by docutils manpage writer.
.