On 24 Oct 2015, at 2:41, Jacob Carlborg wrote:
Let's see if I can explain this:
- TextMate executes a command in the RSpec bundle
- That command is implemented in bash, containing inline Ruby code.
That is, Ruby code is piped to a file which is then executed 3. The Ruby code runs the tests
All variables (defined in Preferences → Variables), regardless of case, are available at step 2. But only environment variables starting with a capital letter are available in step 3.
That is not the case here. I made the following command:
#!/bin/sh env|grep -v '^[A-Z]'
I see two variables starting with underscore, but no underscore variables, even though I added one in Preferences → Variables.