From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 13 Feb 2006 12:29:07 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Re: patch/list applied/ape-dumb-autohell-fixes In-Reply-To: <6e0a93d2952defd6f4258eab2dc26322@cat-v.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7c5561c3fea402ccac05d5762e3d2aa7@plan9.bell-labs.com> <6e0a93d2952defd6f4258eab2dc26322@cat-v.org> Topicbox-Message-UUID: fdfadde6-ead0-11e9-9d60-3106f5b1d025 > % grep '\$srcdir/configure' SDL-1.2.9/configure > set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` > set X `ls -t $srcdir/configure conftest.file` > if test "$*" !=3D "X $srcdir/configure conftest.file" \ > && test "$*" !=3D "X conftest.file $srcdir/configure"; then > > ($srcdir is '.') I think this is just a bug in the Plan 9 ls. It uses cleanname as a crutch to avoid doubling / in some names, but that makes it somewhat inconsistent. For example: cd /sys/src/cmd ls . | grep ls.c ls ./ls.c produces two different lines. I put a new ls.c on sources that is a bit more consistent and should work better in the above script. > I don't like the idea of forking stuff, but in the end it's going to be t= he only > way if APE is going to emulate all the lunix crap well enough to be usefu= l. Says you. I think having wrappers (as we do for yacc and ar) is a much better long-term approach. Then there's still only one program providing the core functionality. Also, just to be clear, APE is the Ansi/Posix Environment, not the "Any random craP that linux does Environment". The configure scripts that autoconf writes are written to the intersection of pretty much every Unix out there, so if there's something they expect (like mkdir -p or ls -L) then it's worth adding. But compatibility with GNU/Linux is *not* the goal. > > I do not believe that cleanname needs to come out. > > I used to run ./configure scripts all the time without > > needing to touch ls. > Maybe it's a recent "improvement" to the auto*hell world. I don't really see the point to incendiary names like auto*hell. Are you just trying to make yourself feel better? Russ