News for hackers. Stuff that matters.
Re:Hints for writing Unix tools by userbinator on Tuesday October 21, 2014 @05:02PM (#8489983)
how do you do a list view with newlines in the filename?

Show them with the standard escape sequence for a newline:

    This\ filename\ncontains\ a\ newline
Same for any other characters that could be considered 'special' in output; I really wish the backslash convention for escaping was more common. Character sets and such are a UI/display issue, so I don't think there should be any special handling for them at the lower levels of the system.

There are no comments on this comment yet.