Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: ~ls
- To: tlug@example.com
- Subject: Re: ~ls
- From: Dmytro Kovalov <dmytro.kovalov@example.com>
- Date: Fri, 17 Nov 2000 09:35:24 +0900
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: Your message of "Thu, 16 Nov 2000 11:42:44 GMT." <20001116114244.A3949@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <de-mpB.A.u5B.b1HF6@example.com>
- Resent-Sender: tlug-request@example.com
-> Other neat expandos: Simon, What was the shell you've used? I have found no shell in which _all_ of your examples have worked... I thought it might be zsh, but: /tmp/TT $ ls ^[012]* zsh: no matches found: ^[012]* Here's just 2 of them: bash: -> % ls 1[234]* -> % ls {12,14}* -> % ls {18..21}* # ( or <18-21>* ) *NO* -> % ls ^[012]* # *NO* -> % ls *mp3~[012]* # *NO* tcsh: -> % ls 1[234]* -> % ls {12,14}* -> % ls {18..21}* # ( or <18-21>* ) *NO* -> % ls ^[012]* # *NO* ( as far as I can tell this works only in tcsh) -> % ls *mp3~[012]* # *NO* Especially about <18-21>* pattern: most shells (actually, all -- but zsh -- of which I have used) treat this as: take STDIN from file "18-21", put STDOUT into whatever is * expanded to. tcsh: $ ls <18-21>* 18-21: No such file or directory. I did try all of /bin/*sh ;) on Linux and csh,sh on Solaris (on Linux csh is just a link to tcsh, and /bin/sh -> bash ;((( --Dmytro
- Follow-Ups:
- Re: ~ls
- From: Simon Cozens <simon@example.com>
- References:
- Re: ~ls
- From: Simon Cozens <simon@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: ~ls
- Next by Date: Re: ~ls
- Prev by thread: Re: ~ls
- Next by thread: Re: ~ls
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links