Symlinking Emacs.app to the $PATH

Vincent Lefevre vincent-opdarw at vinc17.org
Fri Nov 14 18:30:06 PST 2008


On 2008-11-14 10:12:22 -0800, Jordan Hubbard wrote:
> JFYI, but to correct a misapprehension here, open does take arguments  
> (for the launched process) so your original idea would have also worked 

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

> if you had used a shell function instead of an alias and passed the args 
> through with $*  HTH

No, do *not* use $* as arguments with spaces would be passed incorrectly
with bash (and other POSIX shells):

sh-2.05b$ e() { echo $*; }
sh-2.05b$ e "a      b"
a b

BTW, arguments with spaces occur much more often under Mac OS X than
under other Unix systems. Using "$@" (with the quotes) is the correct
way, but an alias does something equivalent.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the macports-users mailing list