[SVN] r6485 (Ruby)

Kevin Ballard kevin at sb.org
Tue Jan 23 16:46:06 UTC 2007

I've read that, and I'm not going to follow its instructions. I  
rarely ever touch my .MacOSX/environment.plist file, and in this case  
I refuse to put PATH in there. One reason is because I occasionally  
change PATH (rarely, but it happens) and I don't like restarting in  
that case. But the main reason is because I don't want my GUI apps to  
have my new PATH. If a system-provided app accesses anything via PATH  
(I don't know why it would, but hey) I want it to get the system- 
provided tool it's trying to access. Anything I put in /usr/local/bin  
or /opt/local/bin is purely for me as a user to access, not for  
system-provided things to access. And that's true even of third-party  
apps - they were written to use the system tools, so I want to give  
them the system tools.

For example, if a third-party app wants to use ruby, I want it to use  
the system-provided ruby. If I want to use ruby I'll use my MacPorts- 
installed version, but I'm deliberately choosing to do that.

And yeah, I know that this is a slippery slope, but I finally edited  
this command like such simply because I kept trying to use ⌃H and  
having it fail, over and over. It was getting really annoying using  
ri from the command-line.

Incidentally, if your only worry is a bunch of extra files, there is  
a technique which can avoid the extra file. I just threw in the extra  
file because it's cleaner to do it this way, but if people want to  
avoid the shebang and still call, say, ruby, you can always do the  

/usr/bin/env ruby <<TM_EOF
insert ruby script here

On Jan 23, 2007, at 8:42 AM, James Edward Gray II wrote:

> On Jan 23, 2007, at 5:37 AM, Kevin Ballard wrote:
> > Move Documentation code into separate file so PATH will be set up
> > appropriately
> I don't really think this is the way to go.  We have a lot of
> commands like this and you could end up creating files for each and
> every one.  Users might even begin to expect this from us.  It also
> seems silly to have to hunt down an external file, when we just want
> to see what some simple command does.
> I think it's better to just fix your PATH as described in the
> "important" paragraph on this page:
> http://macromates.com/textmate/manual/shell_commands#search_path
> Allan has mentioned that he intends to add a PATH setting to TM's
> preferences, for just this reason.  That's probably another good
> reason for us not to go down this road.
> James Edward Gray II

Kevin Ballard
kevin at sb.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20070123/e531b57d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20070123/e531b57d/attachment.p7s>

More information about the textmate-dev mailing list