[MacPorts] #40035: base aborts if current directory does not exist, even when given a port name
MacPorts
noreply at macports.org
Tue Aug 6 23:08:22 PDT 2013
#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
More information about the macports-tickets
mailing list