coreutils
[Top][All Lists]
Advanced

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

Re: sort parameters question: -V and -f


From: Pádraig Brady
Subject: Re: sort parameters question: -V and -f
Date: Wed, 06 Apr 2011 23:04:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 06/04/11 22:26, Assaf Gordon wrote:
> Hello,
> 
> I'm wondering if this is a bug (where "-f" is ignored when using version 
> sort):
> 
> =========
> $ sort --debug -f -k2,2V 
> sort: using simple byte comparison
> sort: leading blanks are significant in key 1; consider also specifying `b'
> sort: option `-f' is ignored

The same happens for any ordering option.
If any is specified for the key, then all global options are ignored.
This is specified by POSIX and here it's demonstrated on solaris:

solaris:~ > printf "a13\nA5\na1\n" | sort -f -k1r,1
a13
a1
A5
solaris:~ > printf "a13\nA5\na1\n" | sort -k1r,1
a13
a1
A5

cheers,
Pádraig.



reply via email to

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