Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sys-chdir(2)

sys-stat(2)

WORKDIR(2)

NAME

workdir − get the current working directory

SYNOPSIS

include "workdir.m"; workdir := load Workdir Workdir->PATH;
 
init:  fn(): string;

DESCRIPTION

Workdir returns a string representation of the working directory of the invoking process. 

When Inferno boots, the initial process has / for its working directory. 

SOURCE

/appl/lib/workdir.b

SEE ALSO

sys-chdir(2), sys-stat(2)

BUGS

The result is usually wrong when the current directory is beneath a union directory. 
The implementation needs improving.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026