4 ms·
I'm also not sure if the automation actually scratches any real itch - I doubt that people try to run 'less' on CD images or 'ar' archives when knowingly workin
by userbinator 12y ago
I'm also not sure if the automation actually scratches any real itch - I doubt that people try to run 'less' on CD images or 'ar' archives when knowingly working with files of that sort.
This is a trend not uncommon in GNU software -- features added by someone who at some point thought it was a good idea, but probably didn't even bother using them much beyond an initial test to see that they are somewhat working. Most users likely think of 'less' as nothing more than a bidirectional version of 'more', and not as the "file viewer that attempts to do everything" that it seems to actually be. It's also a little reminiscent of ShellShock.
- alayne 12y agoThis sounds more like a problem with gluing a bunch of "stuff" together with shell scripts that are not well thought out than a problem with less or GNU in general having untested features.
- jschwartzi 12y agoTo be fair, the usefulness of a tool is often proportional to your power to also do really dumb things with it.
- fafner 12y agolesspipe is not a GNU project...
- TorKlingberg 12y agoYes, the responsibility here lies squarely with the distros that set LESSOPEN and LESSCLOSE.
- oblio 12y agoI'll be in the other camp. At least for directories, I like whatever magic distros do so that I get a file listing when using less on a directory, and can then less an actual file. Features are nice - and ultimately in this scenario you'd just get owned 5 mins later when your archiving tool would get hacked directly, instead of through less. The regular user won't use less to check the binary content for malware anyway...