[manual index][section index]

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-fd2path(2), sys-stat(2)

WORKDIR(2 ) Rev:  Thu Feb 15 14:43:27 GMT 2007