J. David Bryan wrote:
Dialect is something I do want to set on a global basis. It does no good when five members of a team are developing an Extended Pascal program if the sixth has been unintentionally using GNU Pascal dialect options (because the compiler has been defaulting to GP dialect) and so produces a program section incompatible with EP. GPC used to provide separate drivers so that, e.g., one could delete all but the EP (default) driver to ensure that users wouldn't accidentally put the compiler in GNU Pascal mode.
Well, here's your `epc' driver for bash:
#!/bin/sh gpc --extended-pascal "$@"
and for command.com (something like this; haven't written batch scripts for quite a while ...):
@echo off gpc --extended-pascal %1 %2 %3 %4 %5 %6 %7 %8 %9
As for removing the gpc executable, I wonder whether you need to patronize your coworkers (they're programmers I assume). Do you remove all other programs that aren't regularly used? But anyway, you could rename the gpc executable to gpc.orig or something (and adjust the wrapper script, of course), so accidentally calling gpc won't work. This has the advantage, when trying to compile something that demands gpc, it will just fail with `gpc not found' or something like this rather than some obscure errors. IOW, if you don't want to have a GPC-dialect compiler (directly invokable), there should simply be no program called `gpc'.
The reason why I'm somewhat sensitive on these matters is that I often get bug reports regarding GPC or some Pascal programs, and sometimes it turns out, often after long debugging, that they were caused by some "local changes" and things like that. I don't like to waste my time this way. So I try to encourage (strongly ;-) people not to make their changes in obscure ways or even distribute changes made in obscure ways. If that isn't accepted, the alternative, at least in the long run, is for me to simply ignore all reports I can't easily reproduce. (I don't know if your changes have caused any problems -- I don't want to check the archives now ... --, but since there are more people who like to suggest such changes, I mean this as a general comment.)
Frank