X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by lists.alpinelinux.org (Postfix) with ESMTP id 808545C4C97 for ; Mon, 21 Aug 2017 02:11:38 +0000 (GMT) Received: by mail-io0-f172.google.com with SMTP id g71so47823134ioe.5 for ; Sun, 20 Aug 2017 19:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=uN7PuP5m1BrBJZUYBV3qtfDcGIEDaEKyUr/rkXHuAs0=; b=ZdPtAk2Tl6VEpfAyXUM+PoX5Y363i1lFjeesuxfTFjwJkC/DQ0rvsr9j2RYqMANYKR 5yj+PxNxAwSsNAqrEcRqrcxY1LdOobR7IoP6PRwE7mGYnnUs21W/XjhXGvV2QJ4BdctP /P9cfwzN1oYKAR3U1GFxvks6yWkvhmDZgjlC05b+RlpGGIhuykYfuBJEekpZOsm4Rkd6 xXfGrnqhjotDgxP6a4S1e+5N3x3t0pZItrSK1BfuDpSA9CWS33ynmoNmlYtL/PbiZmuN lJzbr5Lo6kfXAOH7WOeRptMdpi0aF0bPdFO3+cp73XYvQwBgmK6e7pP9oY5yEdrSvsfD By/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=uN7PuP5m1BrBJZUYBV3qtfDcGIEDaEKyUr/rkXHuAs0=; b=i+Ku2ITTNTh/cCw2bHrXiKCnCFh1N1hfCpJa3Jk9qY3+wCt0N/oT63HA0jg2hJ2ddm e0fK4NnY6HDJNKeRZve66k3thrKmcTaKCGc4qHBxVZdFN7oAlmRNCUffac5WJdfiyRwH 9SB6Cowv8fovj6V2qvWxqOyUY4pSGMi/7kMJW24avnHab7E69E1QwzqL9/i8jDVhWMaL MDuy5ShaVQr2E7qQqOTxkyeU/+yqpNnz2Vb7usGh9sAVUlx1iKaR/6P0OLAdjKY0AIjf G8CpKB9gOqrGXiwZvrffRL9LGucVqH+nmP/k9yMasHU0S7RFrWqUkd5cRcWqS3gAQM9h 59Ig== X-Gm-Message-State: AHYfb5jBQxzc8nScT3u77GCgjtXlYjjlN1FPYlXxzJppycVxEmhz6glt m+LhAslKKEHMmDp8G58= X-Received: by 10.107.13.82 with SMTP id 79mr7838289ion.307.1503281497400; Sun, 20 Aug 2017 19:11:37 -0700 (PDT) Received: from [192.168.88.239] ([184.68.105.38]) by smtp.gmail.com with ESMTPSA id h76sm5288508ioe.28.2017.08.20.19.11.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 19:11:36 -0700 (PDT) To: alpine-user@lists.alpinelinux.org From: Assaf Gordon Subject: [alpine-user] Bug in busybox's sort -s ? Message-ID: <6192349c-0136-40bb-3fd6-3e78441cc418@gmail.com> Date: Sun, 20 Aug 2017 20:11:42 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Hello, I encountered strange result with "sort -s" on Alpine 3.6.2. Wanted to check with you before filing a bug: The following two commands (with and without -s) give different result on alpine linux 3.6.2/amd64, withg busybox v1.26.2 (2017-08-03 13:08:12 GMT): $ printf "a X 1\nA X 2\nA x 5\n" | sort -k1,1 A X 2 A x 5 a X 1 $ printf "a X 1\nA X 2\nA x 5\n" | sort -k1,1 -s A x 5 A X 2 a X 1 They give the same result (as they should) with coreutil's, FreeBSD and OpenBSD's sort. Strangely, I also get the correct same result when building busybox on a Debian machine, tried both the latest git and tag 1_26_2. It's only on an Alpine VM that I get this discrepancy. Any ideas? Thanks! - assaf --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---