[SVN] Re: r11158 (Subversion)

Joseph Pecoraro joepeck02 at gmail.com
Thu Jan 29 14:26:36 UTC 2009


>> However, I typically use /usr/bin/env ruby in my scripts.
>> Are there situations where it is better to use one of these
>> over the others?
>>
>>  1. ruby (which may be defined by the user's path)
>>  2. /usr/bin/ruby (system default)
>>  3. /usr/bin/env ruby (doesn't rely on the shell to look in path)
>
> In general, use #1, for a shebang though no PATH searching is done (so
> absolute path is required), this is why #3 is used (so the system
> actually executes the ‘env’ shell command, which then executes ‘ruby’
> and searches the locations listed in the PATH variable).
>
> A minor concern is that TextMate support files (like commands) are
> used by other editors on other platforms, so here ruby might not be
> in /usr/bin.

Thanks for the overview!

- Joe


More information about the textmate-dev mailing list