FMTDUMP(8)

πŸ’… FMTDUMP(8) β€” like, the nmh format-file decoder bestie

okay so real quick, this is a page from the System Manager's Manual, and the tool is called fmtdump. it lives at /usr/libexec/nmh/fmtdump. let's get into it 🫢


✨ NAME ✨

fmtdump β€” decode nmh's mh-format(5) files

no cap, that's the whole vibe. it takes your format files and tells you what they actually mean. πŸ’–


🌸 SYNOPSIS 🌸

/usr/libexec/nmh/fmtdump [-help] [-version] [-form formatfile] [-format string]

yes bestie, that's the full path. she's not in your PATH by default, she's tucked away in /usr/libexec/nmh/. iconic behaviour honestly. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: fmtdump parses an nmh format file and produces a pseudo-language listing of how nmh interprets that file. it's giving translator. it's giving "let me show you what the computer actually thinks you said."

this is so useful when you're debugging a complicated format file. like when your format file is doing the absolute most and nothing renders right and you're just sitting there like 😭 β€” that's when you run fmtdump and it spills everything.

the -format string and -form formatfile switches may be used to specify a format string or format file to read. so you can point her at a literal string, or at a whole file, your choice, main character energy either way. ✨

if you want the full deets on format strings and format files, go read mh-format(5). that's the homework. πŸ“š


πŸŽ€ FILES πŸŽ€

  • $HOME/.mh_profile β€” the user's profile. your personal config, your little corner. πŸ’œ
  • /etc/nmh/scan.default β€” the default format file. the system-wide fallback, the group chat default, the "if nobody says anything else we're doing this" option. 🌈

πŸ’« PROFILE COMPONENTS πŸ’«

  • Path: β€” to determine the user's nmh directory. yeah she reads your profile to figure out where your nmh stuff lives. 🫢

πŸ’– SEE ALSO πŸ’–

go read all of them, they're all part of the same friend group fr fr. πŸ“–


🌟 CONTEXT 🌟

None

literally none. no context needed. she's independent. she doesn't need the surrounding message state to do her thing. slay. πŸ’…


quick vibe check bestie: this one's a debug tool, so use it when you're confused, not in your everyday scripts. it's for looking, not for doing. πŸ”

and that's the page!! this gem comes from nmh-1.8, dated 1999-04-30 β€” yeah she's an old soul but she still ate πŸ’–βœ¨ thanks for reading, ily, go debug your format files πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from