25
WTF is going on with my less
(sh.itjust.works)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Per the Gnu Coreutils NEWS file:
This has nothing to do with less (or bash or fish). It is a new behavior as of Coreutils 9.10. It is to preserve the hyperlinks in the help output of ls, cp, rm, mv, etc. In default mode, less catches these control codes and escapes them so you see the visual escape codes. If you use
less --raw-control-charsthen less is NOT escaping the control characters (just passing them through) and they get interpreted by the terminal as screen formatting codes.Debian 13, which ships Coreutils 9.7 does not have the change and cannot reproduce the behavior.
You may want to tag your triple-backtick with something like
textorplainso you don't get auto-inferred syntax highlighting. E.g:good one, thanks!