Thank you for opening this bug and helping make Ubuntu better.

This does not seem to be a bug but rather one or more wrong
expectations:

1. the default field separator for 'sort' is a space; there are no spaces in 
the data you provided
2. you are running under the en_US.UTF-8 locale; 'sort' output may be affected 
by the locale in use (see [1])
3. you did not specify a filed to sort on, so 'sort' will use the whole line as 
a key.
4. you did not specify the field separator.

For your 'fails' dataset, I run sort as:

sort  -k1,1 -t: fails
foo:2
foo1:3

Which seems to be what you expected. Please see 'info sort' for the full
documentation of the utility.

I am closing this bug as INVALID (not a bug). Please re-open if you do
not agree with it.

[1] http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-
does-not-sort-in-normal-order_0021

** Changed in: coreutils (Ubuntu)
   Importance: Undecided => Low

** Changed in: coreutils (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1152622

Title:
  Sort fails to sort

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1152622/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to