cvftest(1)

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

πŸ’– NAME πŸ’–

okay so bestie, cvftest(1) is literally the dmsdos CVF identification tool β€” she's here to vibe-check a file and tell you if it's giving CVF energy. πŸ’…

✨ SYNOPSIS ✨

cvftest filename [-v]

πŸ¦‹ DESCRIPTION πŸ¦‹

cvftest tries to find out whether the file (or device) filename is a CVF. no cap, that's the whole main character mission. 🎯

The way she does it: she reads the first 512 bytes from filename and checks for certain strings. lowkey simple, highkey iconic. ✨

If filename is just a minus sign (-), the data are read from standard input. yep, stdin bestie, she's flexible like that. 🫢

If the switch -v is given, the result of the test is printed to standard output, including a description about what kind of CVF was detected. so -v is the spill-the-tea flag β€” you get the result plus the CVF flavor report. πŸ”₯

🌈 RETURN VALUES 🌈

  • returns 0 β€” zero (i.e. true): filename has been recognized as a CVF. slay, it's a match. βœ…
  • returns 1 β€” otherwise: not recognized as a CVF. okay, not every file is that girl. πŸ™ˆ
  • a value >1 β€” indicates an error (e.g. filename does not exist or cannot be read). that's the "she tried, but the file ghosted her" zone. πŸ’€

πŸ’€ BUGS πŸ’€

okay so this program is so simple that it could be a shell script. but the original author is not a shell hacker, so it's C. respect the C, periodt. πŸ’…

The test is not idiot-proof. as it just checks for some magic values, it might eventually misidentify other files as CVFs. these cases are supposed to be extremely unlikely, though, and have never been reported yet. so like, rare rarity, no cap. πŸ¦‹

But if you take a look at the source you easily find a way to fool the program :-) β€” not me exposing the lore, but there it is. πŸ‘€

πŸŽ€ SEE ALSO πŸŽ€

Refer to the dmsdos main documentation for further information. iykyk, go read the main docs for the full story. πŸ“š


signed, sealed, and served with vintage cuteness by dmsdos 0.9.2.0 on 10 Oct 1998 β€” cvftest(1) forever, mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from