MBK_IN_FILTER(1)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’… MBK_IN_FILTER πŸ’…

okay so bestie, welcome to a page from the MBK ENVIRONMENT VARIABLES manual β€” yes that's the manual name, and the page itself is MBK_IN_FILTER(1). this one's short, sweet, and honestly kind of iconic for anyone who's ever had to unzip an Alliance file before reading it. let's get into it 🫢

✨ NAME ✨

MBK_IN_FILTER β€” literally just: it defines the input filter. that's the whole job. πŸ’…

πŸŽ€ ORIGIN πŸŽ€

so this software is part of the ALLIANCE CAD SYSTEM, which was developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. πŸ‡«πŸ‡·βœ¨

like, that's where it comes from, no cap.


πŸ’– DESCRIPTION πŸ’–

so MBK_IN_FILTER sets the input filter used for reading compressed Alliance files. the filter is typically a string containing a filename and options. simple enough, right?

here's the vibe check on what that filter actually has to do: it must read a compressed data flow on its standard input, and write a non-compressed data flow on its standard output. so it's a little decompression pipe, essentially. 🧚

files are taken from the first directory where they're found, according to the environment variable MBK_CATA_LIB. (iykyk β€” that one's doing the real search work.)

and here's the little plot twist πŸ‘€ β€” if a compressed version and a non-compressed version of a file both exist in the same directory, the non-compressed one gets opened, and a warning message is supplied. not me getting a warning for having both, but okay, fair.

oh and also β€” to actually activate filters, the variable MBK_FILTER_SFX must be set. so MBK_IN_FILTER alone isn't enough, bestie. you need both. periodt. πŸ’€


🌸 EXAMPLE 🌸

opening compressed files with gzip, like so:

setenv MBK_IN_FILTER "/asim/gnu/bin/gunzip -c"
setenv MBK_FILTER_SFX ".gz"

look at that. two lines. -c doing its thing, .gz as the suffix. iconic behavior honestly. πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, bestie, they're the whole friend group πŸ’œ


πŸ™ˆ BUG REPORT πŸ™ˆ

okay so full transparency: this tool is under development at the ASIM department of the LIP6 laboratory. they literally need your feedback to improve documentation and tools. so like… if something's weird, tell them. be the main character who files the bug report. πŸ‘‘


πŸŒˆπŸ’… and that's the page!! brought to you by ASIM/LIP6, dated October 1, 1999 β€” yes, 1999, vintage, iconic, still slaying. bye bestie!! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from