Re: Bug#92263: dpkg --list truncates package names?
On Fri, 16 Apr 2004, [ISO-8859-2] Darabos Edvárd Konrád wrote:
> The COLUMNS (and LINES) variable - by default - is set by the terminal
> software when you resize the window (or change resolution in text mode). No
> problem, perfect! :-)
> My problem is the above mentioned. If you redirect the output of "dpkg -l",
> then it uses an internal default (?) value of 80, so the package names a
> stripped. So I cannot use the output of "dpkg -l" for scripting. I would
> expect a similar behaviour to "ps". Try "ps auxf", and try "ps auxf | cat".
Set COLUMNS=###, or use dpkg-query.