In a terminal (or xterm, or emacs) window, the command: open dirname (where dirname is . or /tmp or /home/fred) doesn't open the the specified directory in Finder. However:
- Opening a non-directory file works fine, for all sorts of file types.
- "open dirname" used to work. Alas I can't identify what had changed, but AFAIR there was no OS upgrade or bash upgrade.
- It doesn't work as root or as normal user.
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15) Model Identifier: iMac8,1 System Version: OS X 10.11.6 (15G22010) Kernel Version: Darwin 15.6.0
man open
page,"open '/Volumes/Macintosh HD/Applications/'" opens that directory in the Finder. Just to rule out, can you check man page of your system? Also, is the path being given as a string, just for convincing?/usr/bin/open .
just to make sure you're running the systemopen
.open '/Volumes/Macintosh HD/Applications/
opens a finder window with the Applications folder.open /tmp
also gets opened in a finder window despite being in a hidden directory . (ping me by @ankii).