Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [3.0.2] L glob qualifier broken
- X-seq: zsh-workers 2968
- From: gwing@xxxxxxxxxxxxxxx
- To: mdb@xxxxxxxxxxxx (Mark Borges)
- Subject: Re: [3.0.2] L glob qualifier broken
- Date: Fri, 7 Mar 1997 07:19:23 +1100 (EST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <vkendsyfk0.fsf@xxxxxxxxxxxx> from Mark Borges at "Mar 6, 97 12:40:47 pm"
Mark Borges <mdb@xxxxxxxxxxxx> writes:
: $ ls -al
: total 928
: drwxr-xr-x 2 mdb climate 512 Mar 6 12:09 .
: drwxr-xr-x 15 mdb climate 1536 Feb 5 11:52 ..
: -rw-rw-r-- 1 mdb climate 13440 Mar 6 11:37 cv397.bin
: -rw-r--r-- 1 mdb climate 14336 Mar 6 11:02 cv397.rtf
: -rw-rw-r-- 1 mdb climate 9700 Mar 6 11:37 cv397.txt
: -rw-r----- 1 mdb climate 4587 Mar 6 12:15 pubs.ref
: -rw-r----- 1 mdb climate 4925 Mar 6 12:05 pubs.ref~
: -rw-r--r-- 1 mdb climate 6588 Mar 6 12:04 pubs0.ref
: $ ls *(Lk+5)
: cv397.bin cv397.rtf cv397.txt pubs0.ref
:i.e., correct. But,
: $ ls *(Lk-5)
: /usr/local/bin/ls: *(Lk-5): No such file or directory
:Shouldn't it have returned the other two files?
No.
Oh, do you want a reason?
13440 = 14k (13440 + 1023) / 1024
14336 = 14k (14336 + 1023) / 1024
9700 = 10k ( 9700 + 1023) / 1024
4587 = 5k ( 4587 + 1023) / 1024
4925 = 5k ( 4925 + 1023) / 1024
6588 = 7k ( 6588 + 1023) / 1024
ls *(Lk5) should return pubs.ref and pubs.ref~
The complement to ``ls *(Lk+5)'' is ``ls *(Lk-5,Lk5)''
You also wrote:
: $ ls *(m-5)
: /usr/local/bin/ls: *(m-5): No such file or directory
: $ ls *(m+5)
: /usr/local/bin/ls: *(m+5): No such file or directory
:The last line should return the complement, shouldn't it?
No. The complement is:
$ ls *(m+5,m5)
--
Geoff Wing [mason@xxxxxxxxxxxxxxx] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
Messages sorted by:
Reverse Date,
Date,
Thread,
Author