From owner-freebsd-current@freebsd.org Sun Apr 9 03:26:24 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A695D358C5 for ; Sun, 9 Apr 2017 03:26:24 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE29CD6A for ; Sun, 9 Apr 2017 03:26:23 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f67.google.com with SMTP id 75so506369lfs.3 for ; Sat, 08 Apr 2017 20:26:23 -0700 (PDT) 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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=/UFj26tTrMgA8fHmlXlRCS0zHo5krwac478iVd1tB6Q=; b=Ywqv+chnCGubpzySDzQAeVYAeKib3hOL+aLYnguYAlrCOuaWkJ8uPpAnj8DptsxjEo WqvyzCkFhZoFYsgTzVjIoK4iHGsFC5fBFKN4bWbVsSsEbH/c4GGH4E2l61//UKXM1Lsr J0ruCc7jPnOPtuPEJuiZ5qIZsszHrGxRTZJjB9t6h18lanOXpORPx1AL1cV2e36qDNMD rJ7kMAUIoglQ5khl8pov7hfck0ceyLIlWgImwVcswfwTA/5a/bXoC6jp1jLHxD143jiR Xuab+V732q/Od5SAZBvmJuO0FyTgCL1DBf2xHs4sq7uzCfMz7DPiUApZizdWGwpPaJWG C8sA== X-Gm-Message-State: AFeK/H3FjLmUfHMGGg3PNTtBgvXG0p8JC6lbbykAP8Awv0WN4ps6gsac/bsfJj+x0o7GwA== X-Received: by 10.25.32.9 with SMTP id g9mr15393085lfg.7.1491708375648; Sat, 08 Apr 2017 20:26:15 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id h10sm1974365ljh.59.2017.04.08.20.26.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Apr 2017 20:26:15 -0700 (PDT) Subject: Re: problem with ls, not show a correct list To: =?UTF-8?Q?Nilton_Jos=c3=a9_Rizzo?= , Toomas Soome References: <25969d2c-6857-77a4-86a4-08b22f15cbfe@freebsd.org> <7a08478e-ee7c-70f6-1b52-bb966f47c594@freebsd.org> <1ba4fb7aa090271be631f01e9f72d844@i805.com.br> Cc: Allan Jude , FreeBSD Current , owner-freebsd-current@freebsd.org From: Andrey Chernov Message-ID: Date: Sun, 9 Apr 2017 06:26:09 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1ba4fb7aa090271be631f01e9f72d844@i805.com.br> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2017 03:26:24 -0000 On 07.04.2017 23:20, Nilton José Rizzo wrote: > Em 2017-04-07 05:51, Toomas Soome escreveu: >>> On 7. apr 2017, at 11:29, Andrey Chernov wrote: >>> >>>> Hi Allan, the ls show all files without case match >>>> >>>> ls [a-z]* >>>> >>>> show all files beginning with a and A like this [aA-zZ]* >>> >>> No, last "Z" is not included. > > > Look this, it's a great error!!!! I see no error. You do not include Z into [a-z] expression above, so why you expect it is unknown. > I lower- equal a upper-case why Z not show in this list? No, it is not case-equal sorting. As I already mention, it is dictionaries sorting, letters considered first, their case - next (and maybe many other factors for non-ASCII - next). > image when a admin use like thinks some rm -rf /*/[A-Z]* Admin should either run C or US-ASCII locale or do not use a-z ranges without knowing sorting on his locale. I see no errors in your sh examples. In general it was decided (not by me) to use CLDR collation since it is able to stable sort all Unicode chars.