I am trying to get different paths in Red language. If I cd to /myfolder
and run following command:
/myfolder$ /path/to/red.exe /path/to/myscript.red
How can I get these 3 paths from code in script?
I tried:
system/options/path ; Gives path/to/myscript
system/script/path ; Gives none
call/output "pwd" outstr ; Gives path/to/myscript
what-dir ; Gives path/to/myscript
I am able to get only one path. How can I get path of red.exe and path of current working directory (In Red language- not Rebol)?
Note: this is related to my question on Rebol at What-dir reporting own directory as current directory in Rebol