home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!axion!spuddy!sweh
- From: sweh@spuddy.uucp (Stephen Harris)
- Newsgroups: comp.unix.shell
- Subject: Re: Shell Scripts vs. C programs
- Keywords: shell script, C
- Message-ID: <1992Sep6.221711.2294@spuddy.uucp>
- Date: 6 Sep 92 22:17:11 GMT
- References: <123@steiny.com> <1992Sep3.213336.5151@spuddy.uucp> <1382@pacsoft.com>
- Organization: Spuddy's Public Usenet Domain
- Lines: 34
-
- In article <1382@pacsoft.com> mike@pacsoft.com (Mike Stefanik) writes:
- >In an article, sweh@spuddy.uucp (Stephen Harris) writes:
- >>#include <machine.h>
- >>That one line program through up tonnes of cpp errors. Blugh.
- >
- >What, pray tell, are you talking about? Of *course* this is going to
- >choke up blood ... for one, a machine dependent include file probably
- >requires that you include <sys/types.h> among others. What sort of
- >errors was cpp returning?
-
- Basically *any* program that included this file gave cpp errors and failed to
- compile. And lots of programs seemed to try and include this file.
- The errors were something to do with syntax errors on the #ifdef lines.
- It didn't understand its own definitions and the tests to determine what
- machine we were compiling on failed miserably. This file was the biggest
- problem, but other files had errors.
-
- >Regardless, dismissing C in general because one vendor's compiler may (or
- >may not) have broken header files is poor logic indeed.
-
- Not in my case. I had to write portable code that had to run on Sun, Altos
- and Convergent. It made a lot more sense to kludge ksh into running on this
- machine and then working in a known "correct" environment.
-
- Since then I have found myself creating programs a lot quicker (not quick hacks
- but small programs intended for permanent use) that perform adequately well.
-
- Even though the Altos (a real *old* model) has now been relegated to running
- a bought package, I still use ksh for its speed of developement.
- --
- Stephen Harris
- sweh@spuddy.uucp ...!uknet!axion!spuddy!sweh
-
- * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
-