[TxMt] Re: Forwarding of environment variables

Jacob Carlborg doob at me.com
Thu Oct 22 19:57:53 UTC 2015


On 2015-10-22 10:32, Allan Odgaard wrote:

> This is a convention enforced by TextMate.
>
> The reason is that Preferences → Variables is really no different than
> ~/.tm_properties or any of the other ways to set “variables”.
>
> The system is both used for settings and variables, and the convention
> is that the latter must start with an uppercase letter to be passed on
> to snippets, commands, etc.

Hmm, it actually looks like command has access to the environment 
variable, i.e. this code [1], but not when it starts to execute the 
tests. It actually works if add this piece of code to line 13 [1]:

ENV['foo'] = ENV['FOO']

At this point, shouldn't the environment variables be passed down?

[1] 
https://github.com/rspec/rspec.tmbundle/blob/master/Commands/Run%20Focussed%20Specification.tmCommand#L13

-- 
/Jacob Carlborg



More information about the textmate mailing list