Re:S/party/hack like it's 1999
by akkartik on Thursday September 17, 2015 @06:32PM
(#10236491)
But it wouldn't fool any text editor, right? Or even less?
[ Parent
| on HN ]
Did 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."
For 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.
Re:S/party/hack like it's 1999
by simgidacav on Friday September 18, 2015 @03:06AM
(#10237862)
Tried 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.
Emacs would show everything.
Re:S/party/hack like it's 1999
by belovedeagle on Thursday September 17, 2015 @10:23PM
(#10237213)
As would view, which has the advantage of being, you know, actually meant for perusing text files.