0 in version number?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 19 01:22:16 PDT 2015


On Saturday, 17 October 2015 at 15:36:10 UTC, Shriramana Sharma 
wrote:
> Marc Schütz wrote:
>
>> Sorting happens in many places where the sorting program is 
>> not aware that it's working with version numbers. Think of 
>> directory listings, for example.
>
> $ cd /tmp/
> $ touch f{1..20}
> $ ls -v1
> f1
> f2
> f3
> f4
> f5
> f6
> f7
> f8
> f9
> f10
> f11
> f12
> f13
> f14
> f15
> f16
> f17
> f18
> f19
> f20

$ ls -v1 | sort


More information about the Digitalmars-d mailing list