[MacPorts] #58739: error getting working directory

MacPorts noreply at macports.org
Sat Jul 20 04:16:37 UTC 2019


#58739: error getting working directory
-------------------------+--------------------
 Reporter:  ParityError  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.5.4
 Keywords:  error        |       Port:
-------------------------+--------------------
 If you're in a directory that no longer exists and attempt to run any
 commands relating to MacPorts you'll get an error:

 $ cd ~/desktop
 $ mkdir test
 $ cd $_
 $ rm -rf ../test
 $ port search xorg-server
 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 5725)

 Yes, it's a strange to remove a directory that you are pwd, but maybe
 MacPorts should have some type of check in that circumstance?

-- 
Ticket URL: <https://trac.macports.org/ticket/58739>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list