Description of problem:
with updated version 1.10.2-13.el7 'nmcli c s' does not wrap lines.
Fedora's version also does not wrap.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Are you saying, it behaves differently than on rhel-7.4?
How exactly? Can you attach the output of the command? (preferably, before and after)
I also tried -p -m $args option to 'nmcli c s $con' and output always does not wrap lines, so if line is longer than terminal width then some information is missing from the output.
and it happens both, in rhel with new NetworkManager-1.10.2-13.el7.x86_64 and Fedora(now 28).
Before in rhel output had wrapped/broken long lines and everything was in the output.
nmcli now spawns a pager, so it sounds you are looking at gnu less.
In less, you can navigate with the arrow keys.
You can pagination, by setting PAGER environment variable, like
$ PAGER= nmcli ...
or by redirectring the output, like
$ nmcli ... | cat
nonetheless, It should be out-of-box behaviour I think. Would be nice not to have to tweak things.
(In reply to lejeczek from comment #4)
> and it happens both, in rhel with new NetworkManager-1.10.2-13.el7.x86_64
> and Fedora(now 28).
> Before in rhel output had wrapped/broken long lines and everything was in
> the output.
I think the pager is useful enabled by default because then you don't need to scroll back to see the beginning of the output, which is very annoying especially for certain commands like 'nmcli connection show $con' which tend to have many lines.
If users prefer not having paged output, it's just simple as setting an empty pager in .bashrc; with the advantage that this also works for other command line tools (systemctl and git come to mind).
As per comments 5 and 7, this is the expected behavior. I'm closing this bug report.