Op 07/07/2020 om 07:44 schreef Michael Van Canneyt:
need more info there! a) what happens when the process, eg Bash
file, changes its working dir (via "cd") many times and I read
CurrentDirectory eg during OnReadData (ASyncProcess)? do I get
changed cur-dir, or initial dir? b) do i get changed dir on all
OSes? c) if Bash file runs child bash file which changes cur-dir, do
i get changed dir?
No, because it is the *initial* directory only.
I changed the docs, no need to submit a report.
I quickly walked through the tprocess docs and most new things in 3.2.0
are nicely documented, nice! Just two emergency changes from May
aren't, and might need rerunning makeskel for it.
See two identifiers without description in
https://www.freepascal.org/docs-html/current/fcl/process/tprocessoptions.html
porunidle: Run Runidle event. By default this is a sleep (to avoid
busy waiting with long living processes)
podetached: Windows specific alternative to poNoConsole. Still creates
a console handle even if it doesn't show it.
(https://forum.lazarus.freepascal.org/index.php/topic,49631.0)
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal