Peter Gerwinski a écrit:
Do paths containing environment variables like `$DJDIR' work in general under UNIX or UNIX-like platforms such as DJGPP?
if you run under bash shell OK, you can type a command like $DJDIR/bin/perl
under plain DOS COMMAND.COM shell it doesn't work at all. only inside a .BAT command file you can have e.g.: %DJDIR%\bin\perl or type %DJDIR%\djgpp.env or even MyProg %DJDIR% if in MyProg you recover the argument with s:=paramstr(1); you recover the _content_ of environment variable DJDIR in string s.
otherwise in the argument of a program e.g. myprog.exe $DJDIR/toto it rests to the program Myprog to parse the first argument and call s:=getenv(DJDIR); to get the content of environment variable DJDIR
Hope it helps