Typing open -a emacs opens one window. Fine. Typing open -a emacs foo.txt opens two windows, one as above, and one with foo.txt in it.

Why is that and what should I do to fix it?


You have to enclose the document you're trying to open in quotes

open -a emacs "/foo/bar/foobar.txt"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .