From owner-freebsd-current@freebsd.org Fri Apr 7 05:13:53 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 6ECE8D329E1 for ; Fri, 7 Apr 2017 05:13:53 +0000 (UTC) (envelope-from rizzo@i805.com.br) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 56EFDFC7 for ; Fri, 7 Apr 2017 05:13:53 +0000 (UTC) (envelope-from rizzo@i805.com.br) Received: by mailman.ysv.freebsd.org (Postfix) id 53472D329DF; Fri, 7 Apr 2017 05:13:53 +0000 (UTC) Delivered-To: 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 51215D329DE; Fri, 7 Apr 2017 05:13:53 +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 17FD1FC6; Fri, 7 Apr 2017 05:13:52 +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 v375Di9g014345 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 7 Apr 2017 02:13:45 -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 v375DijK014344; Fri, 7 Apr 2017 02:13:44 -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: current@freebsd.org 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 02:13:43 -0300 From: =?UTF-8?Q?Nilton_Jos=C3=A9_Rizzo?= Cc: owner-freebsd-current@freebsd.org In-Reply-To: References: Message-ID: <3a8b8ade882d1486aa41b448a9c83b6c@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 05:13:53 -0000 It's a terrible!!!! Is it a locale bug? Look! % 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= % pwd /home2/rizzo/tmp/teste % touch a % touch b % touch c % touch d % touch A % touch D % touch E % ls -l [a-z]* -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 a -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 A -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 b -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 c -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 d -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 D -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 E % pwd && ls && pwd && ls [a-z]* && pwd && rm [a-z]* && pwd && ls /home2/rizzo/tmp/teste a A b c d D E /home2/rizzo/tmp/teste a A b c d D E /home2/rizzo/tmp/teste /home2/rizzo/tmp/teste % setenv LANG C % locale LANG=C LC_CTYPE="C" LC_COLLATE="C" LC_TIME="C" LC_NUMERIC="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= % pwd /home2/rizzo/tmp/teste % touch a % touch b % touch c % touch d % touch A % touch D % touch E % pwd && ls && pwd && ls [a-z]* && pwd && rm [a-z]* && pwd && ls /home2/rizzo/tmp/teste A D E a b c d /home2/rizzo/tmp/teste a b c d /home2/rizzo/tmp/teste /home2/rizzo/tmp/teste A D E % Now, with a locale = C the substitution work fine -- ******************************************************** * Nilton José Rizzo Sistema de Informação UFRRJ * * http://cursos.ufrrj.br/grad/sistemas/ * * lattes:http://lattes.cnpq.br/0079460703536198 * ********************************************************