I believe open just passes filename args, probably because it canonicalizes them before passing to LaunchServiced. So it passes args, just not *any* args (and if you think about passing context across address spaces, it even makes sense).

Sent from my iPhone

On Nov 15, 2008, at 15:03, Rainer Müller <[EMAIL PROTECTED]> wrote:

Jordan K. Hubbard wrote:
On Nov 14, 2008, at 6:30 PM, Vincent Lefevre wrote:

Here (10.4.11) "open" doesn't take arguments:

prunille:~> open -a /Applications/MacPorts/Emacs.app -nw foo
2008-11-15 03:22:26.754 open[4228] No such file: /Users/vinc17/-nw

Well, I have not run 10.4 for a number of years now, but it certainly
works on 10.5, so get off the stick and upgrade already.  Leopard was
released over a year ago!

Hm, it does not take arguments on 10.5.5 (9F33) for me either.

$ open -a /Applications/MacPorts/Emacs.app -nw foo
open: invalid option -- w
Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b <bundle identifier>]
[-a <application>] [filenames]
Help: Open opens files from a shell.
...

Don't know what other version of 10.5 you are using, but I doubt it's
something that was released to the public if it is working there :-)

Rainer
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to