Path: utzoo!utgpu!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: alt.sources.d Subject: Re: NON-SOURCE POSTINGS CONSIDERED HARMFUL! Message-ID: <1991Jan26.091846.25944@convex.com> Date: 26 Jan 91 09:18:46 GMT References: <18354:Jan2415:53:5391@kramden.acf.nyu.edu> <1991Jan25.090627.14302@convex.com> <24078:Jan2516:52:2591@kramden.acf.nyu.edu> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 32 Nntp-Posting-Host: pixel.convex.com From the keyboard of brnstnd@kramden.acf.nyu.edu (Dan Bernstein): :In article <1991Jan25.090627.14302@convex.com> tchrist@convex.COM (Tom Christiansen) writes: :> :Now what is easier to maintain: a simple 7-line shell script, or a :> :28-line perl script? :> You're comparing apples with windmills. Your script doesn't at :> all do the same thing. : :Yes, it does, except for the difference I noted (and a few arbitrary :limitations that will never come up in practice). : :For example, on this machine, /bin/cat and /usr/bin/cat are the same :file. Your perl script takes several lines of tests to make sure that it :doesn't report cat. My script takes one line to do the same thing. : :On this machine, /bin/mail and /usr/ucb/mail are quite different. So :your script reports them. Mine does too. The difference is that mine :just says ``mail'' while yours also points out where the conflicting :versions are. Naturally, I think that it's the job of ``which'' to do :the latter, but it's just a 2-line change to the shell script if you :care. You assume you can tell me what I wrote my script to do, and then you go on to redefine this. For this they invented the word arrogant, and then tacked ignorant on to the end of it. I wrote it to give the output it gives. The problem was to list the full path names of all names in collision. Nothing less than this solves the problem. --tom -- "Hey, did you hear Stallman has replaced /vmunix with /vmunix.el? Now he can finally have the whole O/S built-in to his editor like he always wanted!" --me (Tom Christiansen )