[MacPorts] #40035: base aborts if current directory does not exist, even when given a port name
#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 Keywords: | Port: ----------------------+---------------------- Sorry for the awkward summary. This demonstrates what I mean: {{{ % mkdir foo % cd foo % (cd .. && rmdir foo) % cd $(port dir subversion) shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory error getting working directory name: no such file or directory while executing "pwd" invoked from within "set current_portdir [pwd]" (file "/opt/local/bin/port" line 4857) % }}} This error only makes sense when invoking port(1) without specifying a port, since it looks for a Portfile in the current working directory. I assume the same behavior would be observed with the -D option. -- Ticket URL: <https://trac.macports.org/ticket/40035> MacPorts <http://www.macports.org/> Ports system for OS X
#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
participants (1)
-
MacPorts