Re: problem with ls, not show a correct list

2017-04-09 Thread Andrey Chernov
On 09.04.2017 19:31, Nilton José Rizzo wrote: >try this > > ls [a-b,k-m] > >in sh using the locale setting to pt_BR.UTF-8 > > it's not work For the set below I got on -current a A b k K l m with any non-C locale which is right. > # ls >

Re: problem with ls, not show a correct list

2017-04-09 Thread Nilton José Rizzo
Em 2017-04-09 00:26, Andrey Chernov escreveu: 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

Re: problem with ls, not show a correct list

2017-04-08 Thread Andrey Chernov
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]* >>> >

Re: problem with ls, not show a correct list

2017-04-07 Thread Nilton José Rizzo
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 % forea

Re: problem with ls, not show a correct list

2017-04-07 Thread Garrett Wollman
In article <3a8b8ade882d1486aa41b448a9c83...@i805.com.br> you write: > > > It's a terrible Is it a locale bug? Look! > >% locale >LANG=pt_BR.UTF-8 >% touch E >% ls -l [a-z]* >-rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 E No, it's the specification of how character ranges in glob(3) and fnmatc

Re: problem with ls, not show a correct list

2017-04-07 Thread Andrey Chernov
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 defin

Re: problem with ls, not show a correct list

2017-04-07 Thread Toomas Soome
> 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 n

Re: problem with ls, not show a correct list

2017-04-07 Thread Andrey Chernov
> 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. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/f

Re: problem with ls, not show a correct list

2017-04-06 Thread Nilton José Rizzo
Em 2017-04-07 02:29, Garrett Wollman escreveu: In article <3a8b8ade882d1486aa41b448a9c83...@i805.com.br> you write: It's a terrible Is it a locale bug? Look! % locale LANG=pt_BR.UTF-8 % touch E % ls -l [a-z]* -rw-r--r-- 1 rizzo wheel 0 7 abr 02:06 E No, it's the specification of h

Re: problem with ls, not show a correct list

2017-04-06 Thread Ngie Cooper (yaneurabeya)
> On Apr 6, 2017, at 22:15, Ngie Cooper (yaneurabeya) > wrote: > > >> On Apr 6, 2017, at 21:28, Nilton José Rizzo wrote: > > … > >> [966] root@valfenda rizzo #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

Re: problem with ls, not show a correct list

2017-04-06 Thread Ngie Cooper (yaneurabeya)
> On Apr 6, 2017, at 21:28, Nilton José Rizzo wrote: … > [966] root@valfenda rizzo #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= I bet t

Re: problem with ls, not show a correct list

2017-04-06 Thread Nilton José Rizzo
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

Re: problem with ls, not show a correct list

2017-04-06 Thread Nilton José Rizzo
Em 2017-04-07 01:33, Allan Jude escreveu: On 2017-04-06 23:12, Nilton José Rizzo wrote: Hi all Look this command on a FreeBSD -current % ls -d /usr/ports/[a-z]* /usr/ports/accessibility /usr/ports/math /usr/ports/arabic /usr/ports/misc /usr/ports/archivers /usr/ports/Mk /usr/ports/astro /u

Re: problem with ls, not show a correct list

2017-04-06 Thread Allan Jude
On 2017-04-06 23:12, Nilton José Rizzo wrote: > Hi all > > Look this command on a FreeBSD -current > > % ls -d /usr/ports/[a-z]* > /usr/ports/accessibility /usr/ports/math > /usr/ports/arabic /usr/ports/misc > /usr/ports/archivers /usr/ports/Mk > /usr/ports/astro /usr/ports/MOVED > /usr/por

Re: problem with ls, not show a correct list

2017-04-06 Thread Nilton José Rizzo
Em 2017-04-07 00:59, Ngie Cooper escreveu: On Apr 6, 2017, at 20:12, Nilton José Rizzo wrote: Hi all Look this command on a FreeBSD -current % ls -d /usr/ports/[a-z]* /usr/ports/accessibility /usr/ports/math /usr/ports/arabic /usr/ports/misc /usr/ports/archivers /usr/ports/Mk /usr/ports/ast

Re: problem with ls, not show a correct list

2017-04-06 Thread Ngie Cooper
> On Apr 6, 2017, at 20:12, Nilton José Rizzo wrote: > > Hi all > > Look this command on a FreeBSD -current > > % ls -d /usr/ports/[a-z]* > /usr/ports/accessibility /usr/ports/math > /usr/ports/arabic /usr/ports/misc > /usr/ports/archivers /usr/ports/Mk > /usr/ports/astro /usr/ports/MOVED

problem with ls, not show a correct list

2017-04-06 Thread Nilton José Rizzo
Hi all Look this command on a FreeBSD -current % ls -d /usr/ports/[a-z]* /usr/ports/accessibility /usr/ports/math /usr/ports/arabic /usr/ports/misc /usr/ports/archivers /usr/ports/Mk /usr/ports/astro /usr/ports/MOVED /usr/ports/audio /usr/ports/multimedia % echo /usr/ports/[a-z]* /usr/ports