Paul.Igodt wrote:
Could anybody help me e.g. by showing the code to catch some of my cygwin (bash) environment-variables: e.g. 'PWD', 'HOME', 'TERM', ...
GetEnv
How do I ask a 'system call' to be executed from within a GPC program?
Execute (unit GPC).
E.g. assume I want to make a 'ls' of some directory, and to see if there is a file called 'testfile'.
If you want to capture the results of a system call, see the `Pipe' unit. However, to find out it a file exists, you don't want to call ls. Instead, see `FileExists' and/or `ReadDir' etc. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707