From owner-freebsd-current@freebsd.org Fri Apr 7 20:20:56 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 B947FD33728; Fri, 7 Apr 2017 20:20:56 +0000 (UTC) (envelope-from rizzo@i805.com.br) Received: from server.i805.com.br (mailhost.i805.com.br [50.7.9.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fbsd10.amd64", Issuer "fbsd10.amd64" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 968BFED9; Fri, 7 Apr 2017 20:20:55 +0000 (UTC) (envelope-from rizzo@i805.com.br) Received: from server.i805.com.br (localhost [127.0.0.1]) by server.i805.com.br (8.15.2/8.15.2) with ESMTPS id v37KKlFu019322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 7 Apr 2017 17:20:48 -0300 (BRT) (envelope-from rizzo@i805.com.br) Received: (from www@localhost) by server.i805.com.br (8.15.2/8.15.2/Submit) id v37KKlYu019321; Fri, 7 Apr 2017 17:20:47 -0300 (BRT) (envelope-from rizzo@i805.com.br) X-Authentication-Warning: server.i805.com.br: www set sender to rizzo@i805.com.br using -f To: Toomas Soome Subject: Re: problem with ls, not show a correct list X-PHP-Script: www.i805.com.br/roundcube/index.php for 186.221.219.53 X-PHP-Originating-Script: 80:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 07 Apr 2017 17:20:46 -0300 From: =?UTF-8?Q?Nilton_Jos=C3=A9_Rizzo?= Cc: Andrey Chernov , Allan Jude , FreeBSD Current , owner-freebsd-current@freebsd.org In-Reply-To: References: <25969d2c-6857-77a4-86a4-08b22f15cbfe@freebsd.org> <7a08478e-ee7c-70f6-1b52-bb966f47c594@freebsd.org> Message-ID: <1ba4fb7aa090271be631f01e9f72d844@i805.com.br> X-Sender: rizzo@i805.com.br User-Agent: Roundcube Webmail/1.2.3 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on server.i805.com.br 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 20:20:56 -0000 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!!!! % foreach d ( a b c d e f g h i j k l m n o p q r s t u v x z w y A B C D E K M Z ) foreach? touch $d foreach? end % locale LANG=pt_BR.UTF-8 LC_CTYPE="pt_BR.UTF-8" LC_COLLATE="pt_BR.UTF-8" LC_TIME="pt_BR.UTF-8" LC_NUMERIC="pt_BR.UTF-8" LC_MONETARY="pt_BR.UTF-8" LC_MESSAGES="pt_BR.UTF-8" LC_ALL= % ls [a-z] a c e h K n r v z A C E i l o s w b d f j m p t x B D g k M q u y % setenv LANG C % ls [a-z] a d g j m p s v y b e h k n q t w z c f i l o r u x % ls [A-Z] A B C D E K M Z % setenv LANG pt_BR.UTF-8 % ls [A-Z] A C E i l o s w Z b d f j m p t x B D g k M q u y c e h K n r v z % I lower- equal a upper-case why Z not show in this list? image when a admin use like thinks some rm -rf /*/[A-Z]* it's no make a sense!!!! Why, I only change a charmap and all my world change! in SH have poor workaround thas not work, if i need this % ls [a-b,k-m] a A b k K l m % setenv LANG C % ls [a-b,k-m] a b k l m % try to do this in sh, with [[:lower:]] or [[:upper:]] , not work it's greater error of implements Ok, it's not a pure ASCII char, but it's must be treated like this >> > > 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;) > > rgds, > toomas > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" -- ******************************************************** * Nilton José Rizzo Sistema de Informação UFRRJ * * http://cursos.ufrrj.br/grad/sistemas/ * * lattes:http://lattes.cnpq.br/0079460703536198 * ********************************************************