#40035: base aborts if current directory does not exist, even when given a port name -----------------------+---------------------- Reporter: larryv@… | Owner: larryv@… Type: defect | Status: new Priority: Low | Milestone: Component: base | Version: 2.2.0 Resolution: | Keywords: Port: | -----------------------+---------------------- Comment (by egall@…): I found that if you split up the `(cd .. && rmdir foo)` into two separate commands, this error doesn't happen: {{{ Local-Admins-MacBook-Pro:foo ericgallager$ cd .. Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ rmdir foo Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ cd $(port dir subversion) }}} vs. {{{ Local-Admins-MacBook-Pro:foo ericgallager$ (cd .. && rmdir foo) Local-Admins-MacBook-Pro:foo ericgallager$ cd $(port dir subversion) }}} I guess that's because in the first case, the directory isn't actually getting deleted out from under you... -- Ticket URL: <https://trac.macports.org/ticket/40035#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X