X-Loop: help-debbugs@HIDDEN Subject: bug#41563: Possible bug with 'sort -Vr' version sorting Resent-From: Danie de Jager <danie.dejager@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Wed, 27 May 2020 15:04:02 +0000 Resent-Message-ID: <handler.41563.B.15905917901882 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 41563 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 41563 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.15905917901882 (code B ref -1); Wed, 27 May 2020 15:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2020 15:03:10 +0000 Received: from localhost ([127.0.0.1]:49767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1jdxaG-0000UG-Af for submit <at> debbugs.gnu.org; Wed, 27 May 2020 11:03:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:59322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <danie.dejager@HIDDEN>) id 1jduqb-0004Re-1U for submit <at> debbugs.gnu.org; Wed, 27 May 2020 08:07:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <danie.dejager@HIDDEN>) id 1jduqa-0005UK-TI for bug-coreutils@HIDDEN; Wed, 27 May 2020 08:07:48 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:46537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <danie.dejager@HIDDEN>) id 1jduqY-0008WE-UE for bug-coreutils@HIDDEN; Wed, 27 May 2020 08:07:47 -0400 Received: by mail-ed1-x530.google.com with SMTP id m21so3508847eds.13 for <bug-coreutils@HIDDEN>; Wed, 27 May 2020 05:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=striata.com; s=google3; h=mime-version:from:date:message-id:subject:to; bh=i8oZ5XcjeQ8SeYT8YHZyobNyelobPncbmFwISvyPVL0=; b=y+v7tXwjg4IzV6CBgFIUYmBs8kYqU2iB2fAMxssBaDYnaGo3tUoihj9BGJW2moRUBM K6RGsl2oj/fBHE3IcRve2nVt6lHx5O15pcXX59ZKHzaJn/YXGKBQ67uccskDtECI8kN8 bxOgObq24RFz/g4jtdbyeGFO/dSoDC5twvAAEoVY4P6P/7szDOsp9BU9BMLFRW0zDlBM 2FzkwN4Rs6GsK0bO6xR7K5T7+FO3zcCeZ3VwtAZSifSURT6iLb3qJZzpAce5RMnUcbvT 6fxv9kZuCb6MctojrQ1u1eoe3jhsxUZ/YnNKxhbhtdop8dPadK6pVGtA4+dQ8PbHqVAz YOIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=i8oZ5XcjeQ8SeYT8YHZyobNyelobPncbmFwISvyPVL0=; b=FBUGUeCXC17N3jbJQdgFX/8hBbnEmagvo+BmGHoTxThOTdvewQnxt7AN7x9q5hLwPR y1wCLl9A/YipFETp051hAx898ewq3qvSLLTJpsBiuZJMzhAIKfCcl/qFtJjVN1SrHqda 0UTzZOyVgkrksu40WetopDHp1L6UYoFE94A8oLp4StqJR5QjOIxdbxCTNpFfvEALqXO6 2ihpWZiUPx9SqeAjyy7e4xXty71E/bN0evgMoW9zShv4nc/a50fz+5+RV/AzCd3a0rVQ RJkMDTTx+rE1ZeLN8ZRZiNFK2xLrirkCB5ca5X/9VxdooFyDNNQxoRAjM6HcV6YHRz0K SK6Q== X-Gm-Message-State: AOAM532RymE07M7+1bGvJ0wrME1CG3qR39B0Mo78Wk8aWxazKAVv7Uq8 6od/W4SYNN4s3J/ugutpBIF6Xjl2bicRU1Hr5/IDN06cWVM= X-Google-Smtp-Source: ABdhPJwQwH/r3uEvYKruS9nd6CHckQZQeBtLt5PU4hMZqKRzwJ0dRh/+cni54ImB3mJaLgxc046el2zRLI/4E/ajO/c= X-Received: by 2002:a50:f40d:: with SMTP id r13mr22704929edm.93.1590581264170; Wed, 27 May 2020 05:07:44 -0700 (PDT) MIME-Version: 1.0 From: Danie de Jager <danie.dejager@HIDDEN> Date: Wed, 27 May 2020 14:07:32 +0200 Message-ID: <CAC6Wms4o6o0b-qYGE+hkRX5wpL=SiJ4HEezamKQHCrMmvwFNQA@HIDDEN> Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=danie.dejager@HIDDEN; helo=mail-ed1-x530.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Wed, 27 May 2020 11:03:07 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) Hi, I use sort -Vr to sort version numbers. I noticed this discrepancy on the latest kernel version from Centos 7.8. command to get output: # ls -t /boot/vmlinuz-* | sed "s/\/boot\/vmlinuz-//g" | grep -v rescue | sort -Vr 3.10.0-1127.el7.x86_64 3.10.0-1127.8.2.el7.x86_64 3.10.0-1062.18.1.el7.x86_64 I'd expect the middle value to be the highest version number. Is this by design or a bug? If it is a bug please let me know if I must log it somewhere. Version details: # sort --version sort (GNU coreutils) 8.22 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and Paul Eggert. Regards, Danie de Jager
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Danie de Jager <danie.dejager@HIDDEN> Subject: bug#41563: Acknowledgement (Possible bug with 'sort -Vr' version sorting) Message-ID: <handler.41563.B.15905917901882.ack <at> debbugs.gnu.org> References: <CAC6Wms4o6o0b-qYGE+hkRX5wpL=SiJ4HEezamKQHCrMmvwFNQA@HIDDEN> X-Gnu-PR-Message: ack 41563 X-Gnu-PR-Package: coreutils Reply-To: 41563 <at> debbugs.gnu.org Date: Wed, 27 May 2020 15:04:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 41563 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 41563: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41563 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.