News for hackers. Stuff that matters.
Re:The Perils of File Typing by ancarda on Sunday December 06, 2020 @11:36AM (#25324544)
Seems the dollar is missing - I only see "mimetypeapplication/vnd.oasis.opendocument.text". Nevertheless, I really like this approach. I will remember it in future.

    $ hexdump -C CV.odt | head -n 5
    00000000  50 4b 03 04 14 00 00 08  00 00 9c ad 7e 51 5e c6  |PK..........~Q^.|
    00000010  32 0c 27 00 00 00 27 00  00 00 08 00 00 00 6d 69  |2.'...'.......mi|
    00000020  6d 65 74 79 70 65 61 70  70 6c 69 63 61 74 69 6f  |metypeapplicatio|
    00000030  6e 2f 76 6e 64 2e 6f 61  73 69 73 2e 6f 70 65 6e  |n/vnd.oasis.open|
    00000040  64 6f 63 75 6d 65 6e 74  2e 74 65 78 74 50 4b 03  |document.textPK.|
Re:The Perils of File Typing by layer8 on Sunday December 06, 2020 @12:19PM (#25324900)
The GP intended $ACTUALMIMETYPE to be read as a variable — there is no $ after replacement.
Re:The Perils of File Typing by ancarda on Sunday December 06, 2020 @12:38PM (#25325058)
Oh silly me, of course. I thought perhaps $ denoted the end of a filename and the start of the contents in Zip. I don't know much about that format.