2 ms·
I checked what I have on my Ubuntu 12.04. $ env|grep LESS LESS= -R LESSOPEN=| /usr/share/source-highlight/src-hilite-lesspipe.sh %s Safe, as long as source-
by pmontra 12y ago
I checked what I have on my Ubuntu 12.04.
$ env|grep LESS
LESS= -R
LESSOPEN=| /usr/share/source-highlight/src-hilite-lesspipe.sh %s
Safe, as long as source-highlight isn't buggy.
I also checked my .bashrc and found this
# make less more friendly for non-text input files, see lesspipe(1)
# NO! I don't want this!
# [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
So yes, lesspipe was the default and for some reason I commented it out. I vaguely remember at being annoyed about less showing me something different from the actual binary content of the files.