2
On a whim today, I ran the 'cat' command on a VirtualBox virtual disk image (VDI) file. As expected, a variety of gibberish was output to the stdout on the console. However about 15 seconds into running the command, the print dialog opened! It displayed a page with just more machine code, ready to print. When I closed the dialog, the file continued on printing as usual.
I'm really mystified by this. I'm running macOS Sierra 10.12.6. Does anyone have any ideas how this kind of behavior can even happen?
If you
cata binary file, there is no knowing what terminal escape sequences you will trigger. You should check your terminal configuration to see if any escape sequences invoke a print. – AFH – 2017-11-16T14:33:43.747