coreutils
[Top][All Lists]
Advanced

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

Re: Student contribution


From: Pádraig Brady
Subject: Re: Student contribution
Date: Mon, 8 May 2017 05:08:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 07/05/17 15:58, Desirée Zahradnicek wrote:
> Hi, mi name is Desirée Zahradnicek and I'm in the last year of
> Information Systems Engineering. As a requirement for subject called
> Free Software I have to make a contribution to a free software
> project, and I thought about contributing to coreutils.
> I have a small but useful idea in mind, I'm thinking about adding an
> option to the program "tail" to make it print the last lines of a file
> filling the terminal height. I think this could be very useful on its
> own and more so in combination with watch. I created a really small
> shell script to emulate the functionality:
> 
> #!/bin/bash
> nlines=$(( $(tput lines) - 2 ))
> tail -$nlines $1
> 
> I'm writing to ask if you think this could be included so I can start
> to work on it.

Thanks for considering coreutils!
As for this particular functionality, it definitely _is_ useful.
I myself use this alias:

  alias tail='tail -n $((${LINES:-12}-2))'

However considering the relatively simple alias to achieve this functionality
it's probably better to not couple that within tail itself.

Would you perhaps consider some other coreutils patch?
For example it would be useful for `sort --debug` to print extra info.
 1. print memory space available.
   I.E. allocated internal buffer sizes and space avail at $TMPDIR(s)
 2. output if locale is specific to the sort.
   I.E. if strcoll() and memcmp() differ in direction

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]