V7 pwd, converted to modern POSIX systems

This program is a conversion of the original V7 `pwd` utility, adapted for use on POSIX systems. It has been tested primarily on Linux.

Today, this program is mostly of historical interest. Modern systems typically provide a library routine or system call for retrieving the current directory, so such a program is not generally needed anymore.

In updating the original code, I aimed to make the minimal set of logical and functional changes necessary to get the program working on POSIX systems, while preserving the core logic of the original version. Additionally, I made some aesthetic improvements to enhance readability for programmers familiar with standardized C.

— Cliff L. Biffle

For more details on why this project was undertaken, visit Cliff L. Biffle’s post over on Fedi.
https://www.osnews.com/story/143690/v7-pwd-converted-to-modern-posix-systems/

Leave a Reply

Your email address will not be published. Required fields are marked *