Maurice Lombardi wrote:
Frank Heckenbach a écrit:
In my DJGPP version of GPC `--unit-path=foo;bar' works as expected.
OK for DJGPP. The problem for me was rhide. It does not work when calling gpc under rhide. If I call gpc in bare dos, it works, also when using a DJGPP response file (gpc toto.pas @parameters) to overcome the command line length limit of DOS. When calling under bash I need to quote as you writed above because ; is line end under bash.
Sure.
With command.com this is not necessary because there is no line end under DOS. I have tried various quotings under rhide, but found no way: apparently there is some interference with the strategy rhide uses to transmit long command lines in DOS. And I do not know the internals.
I only took a quick glance at rhide. It seems to use system() which calls command.com unless SHELL is set to $DJDIR/bin/sh.exe. If you have SHELL set, that might be the problem here (though it's generally better ;-) because bash will probably interpret the `;'. Escaping the `;' with `' might also not work because it might be interpreted as a dir separator. Did you try quoting it with "" or ''? Not sure if it should work ...
If nothing else helps, multiple `--unit-path' options with only one directory each are the last resort.
Frank