Stefan Sperling wrote: > This removes the isprint() check entirely. Do we really want that? > > To what degree should tools like ls protect terminals from escape codes?
I think this is beyond the scope of what ls should care about. du doesn't have such a check. Does the shell perform a check before tab completing? If there are evil filenames laying about, they are going to hit the terminal at some point. There's no way we can insulate every program, and insulating some random selection of programs doesn't offer real security.