From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Tolpin Message-Id: <200403190818.i2J8IgUU097747@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] ls, rc question -- proposed change to rc/glob.c In-Reply-To: <59B1952A-797D-11D8-8706-000A95B984D8@mightycheese.com> Date: Fri, 19 Mar 2004 12:18:42 +0400 Topicbox-Message-UUID: 37e97ee4-eacd-11e9-9e20-41e7f4b1d025 > > Since I don't have a printer, here is a proposed change to rc/glob.c > > i don't like changing the shell to mask kernel behavior. it leads > to surprises. consider unix shells that `fix' cd in a way that it > differs from the chdir system call. 1. There is no kernel behavior in glob. It is just a pass over a list, with results sorted after the pass. 2. The changes I propose make it conforming to the manual. > i say leave it. the current behavior doesn't break much and as > rsc says it can even be informative. It cannot. ls -q /dev/user* will not give information about two different user files. It will display the first /dev/user twice. There is a difference between ls /dev |grep user ls /dev/user* ls /dev/user While bringing two elements is informative in the first case (and I do not propose to change it), in the second case it is not. It cannot be used. David