You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if 1
/*
* This is a kludge to workaround a problem on some systems
* where terminating a remote tty connection causes read() to
* start returning 0 forever, instead of -1.
*/
(...) (code that exits) (...)
#endif
I have to wonder: is it a less problem ? Does the change of behavior affect other programs ?
That "kludge" dates back to 2007, so it's probably unlikely to be (by itself) the culprit.
Unsure how much programmatical use less (and zstdless) gets... to have a significant impact on the programs that use it, if any. I don't even know how to call this "behavior", and outside of issues of less itself, it's rather hard to search for such reports (less is too common a word).
Do you think this issue should be upstreamed to less?
The situation is not clear, so it's difficult to attribute a clear root cause at this point.
What seems clear from your investigation is that something changed in lessv611, dating Nov 2022,
and that change started to break the test's expectation.
Since everything is possible at this stage, it may be that the test was doing something silly that was working by accident.
But in such circumstances, the onus should rather be on the part that changed and broke the (so far working) test.
Then, an investigation might end up justifying that the issue is on the user side,
but it feels logical to start the investigation where the change happened.
Describe the bug
Specifically, starting with git tag v611, or according to git bisect, commit b17b0802.
The result is as follows:
The problem is that the first invocation of zstdless exited with 1.
With strace and a bit of manual debugging (aka inserting printf all over the place), the code doing the exit is located here, reproduced below:
To Reproduce
Steps to reproduce the behavior:
exec less
in programs/zstdless withexec $NEWER_LESS
tests/cli-tests/run.py --verbose cltools/zstdless.sh
There is also an actions run here for your convenience.
Expected behavior
The test should succeed.
The text was updated successfully, but these errors were encountered: