Can't launch Finder window from terminal on Mojave open isn't behaving as expected on Mojave. Running

open /Library/


gives 

LSOpenURLsWithRole() failed with error -600 for the file /Library.


This happens regardless of the opening location. I'm totally lost here. Any hints?

Edit:

It is working now after letting my laptop go to sleep for a while, for whatever reason. If you run into this issue, I guess just try a reboot.
Not able to reproduce the error as I have access to Catalina's and High Sierra's macs but not Mojave. But you may want to try if updating permissions for your Terminal.app and iTerm.app resolved the issue:

System Preferences&gt; Security&amp;Privacy&gt; Privacy&gt; add both apps to &quot;Accessibility&quot; and &quot;Automation&quot; lists
Deleting &amp; re-adding them could also help (it worked for me a few weeks back, re-enabling osascript assistive access to the system UI for my terminal scripts that had suddenly stopped working).

Nota &amp; Disclaimer: control panel headings above are Catalina's - High Sierra has only &quot;Accessibility&quot; - Mojave's should be close enough though -- Obviously changing any such Security settings is done at your own risks etc... -- while I did not have to do it in my case, logoff/logon could help ensure the permissions are properly applied.