Bug 917972

Summary: zypper ps truncates file names
Product: [openSUSE] openSUSE Distribution Reporter: Andrei Borzenkov <arvidjaar>
Component: BasesystemAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P4 - Low CC: nwr10cst-oslnx
Version: 13.2   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of zypper ps output

Description Andrei Borzenkov 2015-02-15 06:53:14 UTC
Created attachment 623317 [details]
Screenshot of zypper ps output

See attached screenshot. There is no option to wrap names as far as I can tell. This was different in 13.1 where names were wrapped.
Comment 1 Michael Andres 2015-02-15 12:21:51 UTC
Looks like zypper wraps if the file column is shorter than 4 chars, otherwise it cuts... 

However, this happens only if output goes directly to a terminal. An option like '--wide' or '--no-wrap' to prohibit this could be helpfull.

Workaround: 'zypper ps | cat' as piped/redirected output should never be truncated.
Comment 2 Neil Rickert 2015-02-15 14:35:49 UTC
I'm surprised to hear that this "was different in 13.1".  It has been that way for as long as I can remember.

I normally maximize the terminal GUI before using "zypper ps", or I do either

zypper ps | less
 or
zypper ps | cat

to avoid the problem.
Comment 3 Neil Rickert 2017-08-01 21:22:23 UTC
I'm closing as WONTFIX, because 13.2 is out of support.

I don't see it as a serious issue, since "zypper ps | cat" is an easy workaround.