cvftest(1)
π 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):filenamehas 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.filenamedoes 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
- nixos 26.05: dmsdos-unstable 2021-02-06
- nixpkgs unstable: dmsdos 0.9.2.3-unstable-2021-02-06
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms