Bug 195020

Summary: ls formatting broken
Product: Base System Reporter: Richard Wagner <rmwagner>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Feedback Timeout    
Severity: Affects Many People CC: oliver, rmwagner
Priority: ---    
Version: 10.1-STABLE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
photo of broken ls formatting none

Description Richard Wagner 2014-11-14 23:16:35 UTC
Created attachment 149420 [details]
photo of broken ls formatting

After using cat to print a file to the screen (/boot/loader.efi in this case) subsequent uses of ls (with no switches) produces output that is not aligned.

This is reproducible and requires a system reboot to correct.

I'm using 10.1-RELEASE which has been clean installed.
Comment 1 oliver 2014-11-18 19:09:19 UTC
Don't know if you are fooling around but in case you aren't: 

Binary data can always mess up your terminal as there may be control characters in it, which your terminal interprets. 

You need to use "cat -v" when displaying binary files or call "reset" or "stty sane" afterwards to clean up your terminal. This may work. 

if you need to see binary data use xxd etc.

This is not a bug.
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2015-02-18 11:54:22 UTC
Updated 10.1-BETA and 10.1-RC versioned bugs to 10.1-STABLE.
Comment 3 Glen Barber freebsd_committer 2015-07-07 16:01:28 UTC
As the last reply suggests, this is expected behavior.