X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.alpinelinux.org (Postfix) with ESMTP id 292765C4C95 for ; Mon, 21 Aug 2017 06:26:38 +0000 (GMT) Received: by mail-wr0-f195.google.com with SMTP id z91so16146905wrc.4 for ; Sun, 20 Aug 2017 23:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owasp-org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:reply-to:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=7l4FzHDHLtCscz6y6lCSoQqCo3ygpjyQllobRutAEzk=; b=grymYZ/sA8JtH+nKDO1UK7pUS3MGTc8xaadUb9LjNMsR8QupDqKsYQzL5jKQc2iwtW 9nbnA+p+Iu+BXGtu6c+29IRZXXEumN0jVn/UZ8Yvw6OiLARDE0g8Q3sdozjCLiNb06PE qgiBVptcSIBMFw78aMblyjqJmazTw5XvdM5zjk/vCK58vdfLBLIkeYP0gNaH0OXfKYeU dtAd8YHICZg9gWo1XKwBfn6dS5NkSGhzpKOvbEIaBcIsInHdyhEAyrxHS3nefaA13J+u kTXFouDQkixANAbUsA/yIaXUjZ4/pyX0fBiysVUY/L2FO4zn9KFrSc1ozd3s82GfN7+a Kzcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7l4FzHDHLtCscz6y6lCSoQqCo3ygpjyQllobRutAEzk=; b=WJrFVZ84HTacV3lpGX6L8yQhpAUwbzI5DOK8JnXuZHHvBXn5or+q6HXlx6dUSFHAHu abZLWGTRIP1+SiBGd0DFLcn9J0XFXUsTfmlXu6CjXGXg7ZXIL+s/7joR10eatujoDkJ6 oI0MHpVTC4LJJRfD6cXMXxzib6alMZWCQ7mGdj6uW0OPS/vuQZ6hXBQTm6m0YiWXNijA zFaU2VCO/ygP1EPrzs2FlDCElUDiS4YovK39AD3/KGj6Wq/10FexYtzA1tPW4RSkRaQ6 lKV2s0BxK6dNWTwxQfv8mg3/ZqjbV/Mztl9fS1wNlxzzUzOifLoXsX6z3hHwIz9Uhb9L GrTQ== X-Gm-Message-State: AHYfb5i/lJOsipCZ/eHuOVlLvk2jhI9NNlckVVhfwbD3SHv/ZTtvBuIg xpxqiZR1eGEgzBzaohg= X-Received: by 10.223.142.70 with SMTP id n64mr4211272wrb.214.1503296797005; Sun, 20 Aug 2017 23:26:37 -0700 (PDT) Received: from [192.168.128.142] (p3EE25C2D.dip0.t-ipconnect.de. [62.226.92.45]) by smtp.gmail.com with ESMTPSA id e137sm8828264wma.29.2017.08.20.23.26.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 23:26:36 -0700 (PDT) Subject: Re: [alpine-user] Bug in busybox's sort -s ? To: alpine-user@lists.alpinelinux.org References: <6192349c-0136-40bb-3fd6-3e78441cc418@gmail.com> Reply-To: Achim From: Achim Message-ID: Date: Mon, 21 Aug 2017 08:26:34 +0200 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <6192349c-0136-40bb-3fd6-3e78441cc418@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Please check you environment: remove all LC_* variables and set LANG=C (or unset LANG), then try again. Just my 2 pence Achim On 21.08.2017 04:11, Assaf Gordon wrote: > 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 ---