File::pushd does a temporary chdir that is easily and automatically reverted, similar to pushd in some Unix command shells. It works by creating an object that caches the original working directory. When the object is destroyed, the destructor calls chdir to revert to the original working directory. By storing the object in a lexical variable with a limited scope, this happens automatically at the end of the scope.
File::pushd does a temporary chdir that is easily and automatically reverted, similar to pushd in some Unix command shells. It works by creating an object that caches the original working directory. When the object is destroyed, the destructor calls chdir to revert to the original working directory. By storing the object in a lexical variable with a limited scope, this happens automatically at the end of the scope.
To install p5.32-file-pushd, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install p5.32-file-pushd
To see what files were installed by p5.32-file-pushd, run:
port contents p5.32-file-pushd
To later upgrade p5.32-file-pushd, run:
sudo port selfupdate && sudo port upgrade p5.32-file-pushd
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.