-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/cli-tests/cltools/zstdless.sh fails with newer version of less #4057
Comments
Thanks for the detailed report. Reading the
I have to wonder: is it a |
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 Since everything is possible at this stage, it may be that the test was doing something silly that was working by accident. |
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: