I know I'm supposed to be able to type open -a Terminal . to get a new Terminal window running in the current directory. But it doesn't seem to work for me; I get this:

Last login: Wed Aug 27 06:52:21 on ttys001
jason-cpu1:~ jason$ /Users/jason ; exit;
-bash: /Users/jason: is a directory

It looks like the Terminal program wants to run a command and then exit. How can I tell it not to do this?

On the other hand, if I use an explicit path to the Terminal app, it works fine:

open -n /Applications/Utilities/Terminal.app

Why the difference in behavior?

  • Take a look: superuser.com/questions/127117/… – duDE Aug 27 '14 at 14:21
  • No, I've already been there. It's the same topic but the standard answer isn't working for some reason. – Jason S Aug 27 '14 at 14:38
  • Have you tried the solution with the script? It is not a standard answer ... – duDE Aug 27 '14 at 14:39
  • That's not my question. The technique open -a Terminal . is supposed to work. I want to know why it's not working in my case, and how to fix it. – Jason S Aug 27 '14 at 14:40
  • Neither open -n /Applications/Utilities/Terminal.app /tmp or open -a Terminal /tmp opened a new terminal with the current directory set to /tmp for me. On the other hand, both open -a Terminal and open -n /Applications/Utilities/Terminal.app opened a new Terminal with the current directory set to the current directory. – ssnobody Aug 27 '14 at 17:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.