From owner-freebsd-current@freebsd.org Fri Apr 7 09:48:37 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 29940D317C1 for ; Fri, 7 Apr 2017 09:48:37 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) (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 AC386B5D for ; Fri, 7 Apr 2017 09:48:36 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f66.google.com with SMTP id r36so5678412lfi.0 for ; Fri, 07 Apr 2017 02:48:36 -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=cOJQf5xciGCR1TptOlluJYx2nkSnj/8n3XWsuUA3spA=; b=ueYmAafUmNgs/eUtjOw1spQrMmYmNb8WHVJtuoXv+CVXMHdKvOcVX6kKXDfsJk9+DG 6wO9cb8AvLhm3bAFBYMTsRcfkjIKVmkmAS+j/H4SHcLhxTgTEUjiRZ9cuI85UZYXMe7q hNQuXs0Wn05tvDlFOPY0R6PiakCgHKObuh4peS7VuRRPU+JU1ejPEIULfB67BMwsEfc1 +ogQV+Bocp1nYHVv4mzxnqhurU7RkCj4HjuQKAQvrheZxrtKp9fyT6VOv3A16dsP+rCf tyGfFHSddfUCyTbKbCgj7hM3vH8Wk4ZN8Fe+GqGR6usFOo78xQWIzL9krto4jp8kWi+Z Eq0A== X-Gm-Message-State: AN3rC/6lEsSvoNQ+edHtsItXNSyrfrx1h/kAaPClqNlqbMd88YTIEIuSfYmpNtQULE0uow== X-Received: by 10.25.233.213 with SMTP id j82mr928966lfk.20.1491558514082; Fri, 07 Apr 2017 02:48:34 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id 3sm830276ljj.16.2017.04.07.02.48.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 02:48:33 -0700 (PDT) Subject: Re: problem with ls, not show a correct list To: Toomas Soome References: <25969d2c-6857-77a4-86a4-08b22f15cbfe@freebsd.org> <7a08478e-ee7c-70f6-1b52-bb966f47c594@freebsd.org> Cc: =?UTF-8?Q?Nilton_Jos=c3=a9_Rizzo?= , Allan Jude , FreeBSD Current , owner-freebsd-current@freebsd.org From: Andrey Chernov Message-ID: <54cb3921-659e-b9ac-4d66-9f3b8452d413@freebsd.org> Date: Fri, 7 Apr 2017 12:48:32 +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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Fri, 07 Apr 2017 09:48:37 -0000 On 07.04.2017 11:51, Toomas Soome wrote: > >> 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. >> > > This is to define set of chars: { a, A-z, Z } ? A-z of course does not make any sense;) Of course note that in few locales z is sorted after s, meaning that list like that can be rather short;) No, [A-z] makes perfect sense with CLDR collation we have, but maybe unexpected effect. Historically all latin letters have single case, so new times upper/lower considered by CLDR as minor modification to the letter which considered first. It is also the sorting used in dictionaries.