* [3.0.2] L glob qualifier broken
@ 1997-03-06 19:40 Mark Borges
1997-03-06 20:19 ` gwing
0 siblings, 1 reply; 3+ messages in thread
From: Mark Borges @ 1997-03-06 19:40 UTC (permalink / raw)
To: ZSH mailing list
$ 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?
--
-mb-
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [3.0.2] L glob qualifier broken
1997-03-06 19:40 [3.0.2] L glob qualifier broken Mark Borges
@ 1997-03-06 20:19 ` gwing
1997-03-06 21:27 ` Mark Borges
0 siblings, 1 reply; 3+ messages in thread
From: gwing @ 1997-03-06 20:19 UTC (permalink / raw)
To: Mark Borges; +Cc: zsh-workers
Mark Borges <mdb@cdc.noaa.gov> 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@primenet.com.au] 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [3.0.2] L glob qualifier broken
1997-03-06 20:19 ` gwing
@ 1997-03-06 21:27 ` Mark Borges
0 siblings, 0 replies; 3+ messages in thread
From: Mark Borges @ 1997-03-06 21:27 UTC (permalink / raw)
To: gwing; +Cc: zsh-workers
>> On Fri, 7 Mar 1997 07:19:23 +1100 (EST),
>> gwing (g) wrote:
g> Mark Borges <mdb@cdc.noaa.gov> writes:
g> : $ ls -al
g> : total 928
g> : drwxr-xr-x 2 mdb climate 512 Mar 6 12:09 .
g> : drwxr-xr-x 15 mdb climate 1536 Feb 5 11:52 ..
g> : -rw-rw-r-- 1 mdb climate 13440 Mar 6 11:37 cv397.bin
g> : -rw-r--r-- 1 mdb climate 14336 Mar 6 11:02 cv397.rtf
g> : -rw-rw-r-- 1 mdb climate 9700 Mar 6 11:37 cv397.txt
g> : -rw-r----- 1 mdb climate 4587 Mar 6 12:15 pubs.ref
g> : -rw-r----- 1 mdb climate 4925 Mar 6 12:05 pubs.ref~
g> : -rw-r--r-- 1 mdb climate 6588 Mar 6 12:04 pubs0.ref
g> : $ ls *(Lk+5)
g> : cv397.bin cv397.rtf cv397.txt pubs0.ref
g> :i.e., correct. But,
g> : $ ls *(Lk-5)
g> : /usr/local/bin/ls: *(Lk-5): No such file or directory
g> :Shouldn't it have returned the other two files?
g> No.
g> Oh, do you want a reason?
[ explanation elided ]
OK, 1k != 1000. doh!
g> The complement to ``ls *(Lk+5)'' is ``ls *(Lk-5,Lk5)''
Hmm, a some sort of "less/greater than or equal to" flag would be neat
here. Though I don't know what symbol would be even possible.
Anyway, thanks for the explanation.
--
-mb-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-03-06 21:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-06 19:40 [3.0.2] L glob qualifier broken Mark Borges
1997-03-06 20:19 ` gwing
1997-03-06 21:27 ` Mark Borges
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).