/bin/pwd
Doug Gwyn
gwyn at smoke.BRL.MIL
Fri Sep 14 07:40:32 AEST 1990
In article <2488 at idunno.Princeton.EDU> pfalstad at phoenix.Princeton.EDU (Paul John Falstad) writes:
>Can anyone tell me how /bin/pwd works? I thought it was a trivial
>program until I tried to write my own without getcwd(3). getcwd is not
>a system call, so it must be possible. The way I think it works is
>quite complicated, so I thought there would be an easier way.
No, on most systems there is no easier way than the obvious one of
seeing where a succession of ".."s gets you.
More information about the Comp.unix.questions
mailing list