6 ms·
But it wouldn't fool any text editor, right? Or even less?
by akkartik 11y ago
But it wouldn't fool any text editor, right? Or even less?
- ajkjk 11y agoDid you read the article? "'less' doesn't interpret escape sequences unless the -r switch is used, so stop aliasing it to 'less -r' just because there's no colored output."
- 0942v8653 11y agoFor GNU less, you can use the -R option, which is like -r except that it only lets color escapes through, and not all escape sequences. So if you want to alias less to less -R that is much safer.
- 78666cdc 11y agoEmacs would show everything.
- belovedeagle 11y agoAs would view, which has the advantage of being, you know, actually meant for perusing text files.
- rr56 11y agoI sort of like the hexdump approach to viewing text files, here.
- simgidacav 11y agoTried with vim, I see the escapes, cristal clear. However, I honestly don't see why I should do something foolish as `curl | sh`, even though from time to time I see websites suggesting this crazy approach. The first thing I think of is "why should I give you control on my shell?". …I guess, however, this is kind of a natural behavior for the user who doesn't know the shell-fu. I've seen a similar article once about Ubuntu Forums. Unfortunately I can't recall the URL.