From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <405B347F.3080703@swtch.com> From: Russ Cox User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031221 Thunderbird/0.4 MIME-Version: 1.0 To: 9fans@cse.psu.edu Subject: Re: [9fans] ls, rc question -- proposed change to rc/glob.c References: <200403191444.i2JEiHG9001765@adat.davidashen.net> In-Reply-To: <200403191444.i2JEiHG9001765@adat.davidashen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 19 Mar 2004 12:57:19 -0500 Topicbox-Message-UUID: 3a452a9e-eacd-11e9-9e20-41e7f4b1d025 David Tolpin wrote: >I'm proposing to make the first form bring what it should. Namely, >to bring every entry once. How displaying the first occurence of >a file as many times as there are entries with the same name makes >it similar or consistent with the second form, I really don't get. > >They are confusing now. The cause of the confusion is a bug in globbing. >The bug should be fixed. > > Actually the cause of the confusion is not agreed upon, as evidenced by the continuation of this discussion! I'm perfectly happy with things as they are now, so that: echo `{ls /dev | grep mouse} echo /dev/*mouse* produce the same output. If you want to fix something, figure out how to fix the kernel. If 9P servers were required to sort their directory entries then the kernel could just toss entries easily during a merge. Not that I'm proposing this. Russ