Bug 1255406
| Summary: | Setting the environment variable PAGER=less makes the CLI unusable | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-cli | Reporter: | Juan Hernández <juan.hernandez> |
| Component: | General | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED WONTFIX | QA Contact: | Pavel Stehlik <pstehlik> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | --- | CC: | bugs, fabrice.bacchella, gklein, lsurette, oourfali, rbalakri, srevivo, ykaul |
| Target Milestone: | --- | Flags: | sbonazzo:
ovirt-4.1-
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-10 10:20:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Juan Hernández
2015-08-20 13:42:17 UTC
The reason for this is that by default the "less" program pauses after the output waiting for a key press from the user, regardless of the length of the output, and the CLI calls the "less" program for outputs with very small number of lines, some times even zero lines. For this reason the default pager command used by the CLI is "less -FXR", where the "-F" option tells "less" to not pause if the output doesn't take all the available screen space. We should modify the CLI so that it uses the pager only for potentially large outputs and not when the number of lines is small (prompts, error messages, etc). Meanwhile, as a workaround, you can set PAGER="less -F", that should help. There aren't plans to update the CLI, so this won't be fixed. |