Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.i386 Subject: Re: UUCP files/directories being removed under SCO UNIX Keywords: uucp Message-ID: <1095@sixhub.UUCP> Date: 5 Jun 90 22:21:34 GMT References: <45@raysnec.UUCP> <7585@pbhyf.PacBell.COM> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Distribution: na Organization: *IX Public Access UNIX, Schenectady NY Lines: 40 In article <7585@pbhyf.PacBell.COM> kjk@PacBell.COM (Ken Keirnan) writes: This ugly shell script: | cd /usr/spool/uucp | | for i in * | do | cd $i | | . | . | cleanup code | . | . | | cd .. | done Any competent programmer would write cd $i || continue to insure that if the cd failed everything would fail cleanly. Yes, you can say [ -d $i ] || continue instead, or several other things, but the idea is that good programmers put error checking in their scripts, *and comments too!!* I don't find SCO any worse than anyone else on this, although they did still have "^" instead of "|" in some of the schell scripts which come with their text system. This makes them fail with ksh, and I reported it over a year before I bought my last text set. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me