bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort "b" option in pos2 has strange effect


From: Pádraig Brady
Subject: Re: sort "b" option in pos2 has strange effect
Date: Sat, 24 Jan 2009 01:53:26 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Davide Canova wrote:
> 
> $ sort -k 1b,1b       #1
> a   x
> a  y
> a z
> ^D
> a z
> a  y
> a   x
> 
> $ sort -k 1b,1.0b     #2
> a   x
> a  y
> a z
> ^D
> a   x
> a  y
> a z

I'm confused by the first command output too.
I'm not sure what the code is trying to do.
It looks like if you do specify and end field,
but don't specify the .# part of it (as in the first
example above), it bumps the end field up one?
The line of code doing that is: http://url.ie/141l
That in conjunction with skipping "ending blanks"
is causing the issue I think.

cheers,
Pádraig.




reply via email to

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