Replacement for cd

Rainer Müller raimue at macports.org
Wed Oct 3 16:37:10 PDT 2007


Kevin Ballard wrote:
> Since the cd command has been removed from trunk, perhaps another
> command could be added to fill in the void? I'm proposing a command that
> acts like cd but takes a block and executes the block within the given
> directory, then restores the old working directory before continuing on.

Is this really necessary? All calls could be done using absolute paths.
And prefixing with ${destroot}${prefix} or ${worksrcdir} is not that long.
I don't think there should be too much complexity on commands in Portfiles.

Rainer



More information about the macports-dev mailing list