27 lines · 667 B · Text
RawDownload
= chdir: change working directory     include "sys.m";    sys := load Sys Sys->PATH;     chdir:  fn(path: string): int; Chdir  changes  the working directory of the invoking processand its file name space group to path. The working directory is the starting  point  for  evaluatingfile  names  that  do  not begin with / or #, as explained insys-intro(2). When Inferno boots, the initial process has / for its workingdirectory. Applications that invoke chdir normally use the FORKNS optionof sys-pctl(2) to prevent the change from affecting the  sur‐rounding environment. == diagnosticsReturns 0 on success; -1 on failure. == see ALSOsys-intro(2)