Re: problem with ls, not show a correct list

From: Nilton José Rizzo <rizzo_at_i805.com.br>
Date: Fri, 07 Apr 2017 01:45:13 -0300
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 /usr/ports/MOVED
>> /usr/ports/audio /usr/ports/multimedia
>> % echo /usr/ports/[a-z]*
>> /usr/ports/accessibility /usr/ports/arabic /usr/ports/archivers
>> /usr/ports/astro /usr/ports/audio /usr/ports/base 
>> /usr/ports/benchmarks
>> /usr/ports/biology /usr/ports/cad /usr/ports/CHANGES 
>> /usr/ports/chinese
>> /usr/ports/comms /usr/ports/CONT
>> alguém sabe o motivo desse erro?
>> % ls -d /usr/src/[a-z]*
>> /usr/src/bin /usr/src/Makefile.libcompat
>> /usr/src/cddl /usr/src/ObsoleteFiles.inc
>> /usr/src/contrib /usr/src/README
>> /usr/src/COPYRIGHT /usr/src/release
>> 
>> What's I do wrong?
>> 
>> % set
>> 
>> addsuffix
>> anyerror
>> argv ()
>> csubstnonl
>> cwd /home2/rizzo/src/repositorio/bsdday-2017
>> dirstack /home2/rizzo/src/repositorio/bsdday-2017
>> echo_style bsd
>> edit
>> euid 1000
>> euser rizzo
>> gid 0
>> group wheel
>> history 100
>> home /home2/rizzo
>> killring 30
>> loginsh
>> owd /home2/rizzo/src/repositorio/Rural
>> path (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin
>> /home2/rizzo/bin)
>> prompt %#
>> prompt2 %R?
>> prompt3 CORRECT>%R (y|n|e|a)?
>> shell /bin/csh
>> shlvl 1
>> status 0
>> tcsh 6.18.01
>> term screen
>> tty pts/4
>> uid 1000
>> user rizzoversion tcsh 6.18.01 (Astron) 2012-02-14 
>> (x86_64-amd-FreeBSD)
>> options wide,nls,dl,al,kan,sm,rh,color,filec
>> % uname -a
>> FreeBSD valfenda 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r313684: Sun Feb
>> 12 20:52:19 BRST 2017 rizzo_at_valfenda:/usr/obj/usr/src/sys/VALFENDA 
>> amd64
>> %
>> 
> 
> Maybe I am missing something. What is the problem with the output?
> ls just appears to be doing columns.

   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]*



-- 
********************************************************
* Nilton José Rizzo     Sistema de Informação    UFRRJ *
* http://cursos.ufrrj.br/grad/sistemas/                *
* lattes:http://lattes.cnpq.br/0079460703536198        *
********************************************************
Received on Fri Apr 07 2017 - 02:45:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:11 UTC