Re: Yum output and term size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il giorno lun, 02/02/2009 alle 11.01 -0500, James Antill ha scritto:
> pirla <the.pirla@xxxxxxx> writes:
> 
>  From a cmd line you can do:
> 
> % repoquery -a --qf '%{nevra} %{repo}'
> 
Tnx... I will try it immediately

>  If the output is going to a non-terminal then yum can't find out how
> big it is. So the only way to make "yum blah" and "yum blah | cat"
> look the same is to guess at what the terminal size is.
But yum can understand that is sending output to a non terminal

>  You might be arguing that a default size of say "1000" is more often
> correct than the current default of 80. I disagree, do you have any
> data? You might argue that piping the output to anything means that
> people want the output to look different ... and I would disagree very
> strongly that people would expect that.
1000 or 80 is the same... If one need 1001.
That should be everytime wrong.
The right solution is to permit infinite lenght.
Parsing output in this way is easier.
grep, less, awk and so on ca be used to build complex scripts.

>  The snippets will show you how to do that.
I'm looking on them.
I should learn a lot on python before.

-- 
Ciao
        Pirla

Per rispondere in E-mail the (punto) pirla (chiocciola) gdit.it
*** un bacio ai pupi ***

---> Linux user since yesterday <---
--->     Linux User #389536     <---

Attachment: signature.asc
Description: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux