svn commit: r204103 - in head/usr.bin: . seq

Xin LI delphij at gmail.com
Sat Feb 20 14:29:05 UTC 2010


On Sat, Feb 20, 2010 at 5:35 AM, Ulrich Spörlein <uqs at freebsd.org> wrote:
> On Sat, 20.02.2010 at 11:58:38 +0000, Alexey Dokuchaev wrote:
>> On Fri, Feb 19, 2010 at 11:54:12PM +0000, Xin LI wrote:
>> > Author: delphij
>> > Date: Fri Feb 19 23:54:12 2010
>> > New Revision: 204103
>> > URL: http://svn.freebsd.org/changeset/base/204103
>> >
>> > Log:
>> >   Add seq(1), a small utility to generate sequence number.
>>
>> Why do we need this when we have jot(1)?
>
> Compatibility with shell scripts, I suppose. Some ports may use seq(1)
> in their test or build targets, etc. There is no jot(1) on any Linux or
> Solaris I've seen so usage of seq(1) is fairly common.

Yes exactly.

> I wonder though, if we could merge functionality into jot(1) and employ
> a link to seq.

The primary difference between the two is the command line parsing and
option handling and seq uses double number.  I think we will not
benefit a lot from the shared code unfortunately...

Cheers,
-- 
Xin LI <delphij at delphij.net> http://www.delphij.net


More information about the svn-src-all mailing list