[Coco] PWD in Basic09 ?

James Jones jejones3141 at gmail.com
Fri Aug 14 21:27:09 EDT 2020


Open a pipe for a shell running pwd that it will write to and you can read
from. That gets you out of the business of reimplementing pwd and can be
used for whatever command you're interested in the output of.

On Fri, Aug 14, 2020 at 11:37 AM <coco at jechar.ca> wrote:

>
>   I could SHELL "PWD > tempfile"
>   Then read the tempfile to determine my current directory.
>
>   Is there any way to access the value of the current directory
>   from basic09 more directly.
>
>   For my application I need to be able to read PWD into a string
>   so I can check if I am on a top level directory. Ie. Only
>   one occurrence of "/".
>
>   Charlie
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list