How did this ZIP file print to my command line when I extracted it?

10

I downloaded a font from www.fontspace.com today. It came in a basic .zip file and so I moved it into its own new folder to extract it (I'm tired of extracting things just to find that they were compressed with everything being in the root of the compressed file and thus they barf all over my desktop). Upon extracting them with the unzip command, ASCII art was printed out into my terminal like in the picture below:

enter image description here

Only a font was extracted. How was this art/text put into the zip file? Is it safe to assume that this is a printed thing only and that unzipping a .zip file doesn't actually execute code (thus assuming that fontspace then wrote a bunch of print statements vs. just writing in a text block when zipping the file to later be printed by a built in zip feature)?

For what it's worth, I'm running on a Debian based Linux distribution.

Freesnöw

Posted 2014-01-03T12:39:12.677

Reputation: 836

Answers

16

Zip archives can contain comments, either per file or for the whole archive. Unix unzip displays this comment by default when you manipulate the file (e.g.: when extracting).

To add a multi-line comment you can use the -z flag

For more information look at the zip manual

Jozef Legény

Posted 2014-01-03T12:39:12.677

Reputation: 798