Charles.Forsyth20060303-partialeea662d19 years agoHistory
40 lines · 749 B · Text
RawDownload
.TH SYS-CHDIR 2.SH NAMEchdir \- change working directory.SH SYNOPSIS.EXinclude "sys.m";sys := load Sys Sys->PATH; chdir:  fn(path: string): int;.EE.SH DESCRIPTION.B Chdirchanges the working directoryof the invoking process and its file name space group to.IR path ..PPThe working directory is the starting point forevaluating file names that do not begin with.B /or.BR # ,as explained in.IR sys-intro (2)..PPWhen Inferno boots,the initial process has.B /for its working directory..PPApplications that invoke.B chdirnormally use the.B FORKNSoption of.IR sys-pctl (2)to prevent the change from affecting the surrounding environment..SH DIAGNOSTICSReturns 0 on success; -1 on failure..SH SEE ALSO.IR sys-intro (2)