Re: DCL versus Unix CLIs, was: Re: File output like Unix

Rich Alderson wrote:

koehler@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Bob Koehler) writes:

Except, of course, that all the UNIX compilers have no idea what
thier input is without looking at the extension.

Oh, horseshit.

That's certainly true of gcc. It's a "compiler suite" and does different things depending on the extension. ".c" tells it to compile C source. ".f" tells it FORTRAN, ".cc" is, I believe" C++ and so on.

It's a bit of a kludge and the "man page" uses 191 pages to document all the command line options, switches, etc, etc. Fortunately, if all you want to do is build freeware packages, the make file generally takes care of the gcc command line.

To accuse "all" Unix compilers probably is horse shit.