coreutils
[Top][All Lists]
Advanced

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

Re: Yet Another test option


From: Chet Ramey
Subject: Re: Yet Another test option
Date: Wed, 6 Jul 2011 12:03:57 -0400

> >>> The issue is extremely nontrivial.
> >>
> >> The normal case is to sort full releases.  The goal in "sort -V" was to 
> >> make
> >> the usual case easy, not to make the authoritative solution for an 
> >> intractable
> >> problem. [...]  In my little world, it would be quite convenient.
> >
> > This is an excellent argument for a utility to perform version comparisons.
> > Such a program could be arbitrarily complex.  This feature is too new to
> > know how it will evolve.
> 
> /usr/bin/test ?
> 
> Do this first in the binary then migrate to bash's test?

I was actually making an argument for an entirely separate utility to do
this.  That could be a shell script encapsulating the proper version
comparison logic.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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