[fpc-pascal] TProcess.CurrentDirectory doc

Sven Barth pascaldragon at googlemail.com
Tue Jul 7 07:49:57 CEST 2020


Michael Van Canneyt <michael at freepascal.org> schrieb am Di., 7. Juli 2020,
07:44:

>
>
> On Tue, 7 Jul 2020, Sven Barth via fpc-pascal wrote:
>
> > Am 06.07.2020 um 23:31 schrieb Alexey Tor. via fpc-pascal:
> >>
> >>
> https://lazarus-ccr.sourceforge.io/docs/fcl/process/tprocess.currentdirectory.html
> >>
> >> CurrentDirectory specifies the working directory of the newly started
> >> process.Changing this property after the process was started has no
> effect.
>
> I added 'initial' to working directory.
>
> >>
> >> 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.
>

Even better :D

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200707/716fbf1f/attachment.htm>


More information about the fpc-pascal mailing list