[Coco] PWD in Basic09 ?

L. Curtis Boyle curtisboyle at sasktel.net
Fri Aug 14 13:19:43 EDT 2020


Not without traversing the directory tree manually yourself, as far as I know. If you are running shellplus (which pretty well all distros do these days), there is ‘PD’ built into the shell itself that will do it a little faster, if I remember, vs. PWD. 

Sent from my iPhone

> On Aug 14, 2020, at 10: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