Is it possible to define a shell variable by referencing another shell variable? Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
Thanks
Todd
On 21. Oct 2006, at 21:45, Todd Breiholz wrote:
Is it possible to define a shell variable by referencing another shell variable?
Yes
Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
That should work fine.
On Oct 21, 2006, at 6:08 PM, Allan Odgaard wrote:
On 21. Oct 2006, at 21:45, Todd Breiholz wrote:
Is it possible to define a shell variable by referencing another shell variable?
Yes
Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
That should work fine.
Except it should be $TM_FLEX_ROOT on the second line, yes?
S
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanks for the response. Maybe I wasn't clear, though. I'm trying to define the TM_FLEX_ROOT project variable in the _project information window_ with a value of $TM_PROJECT_DIRECTORY/flex
When I evaluate $TM_FLEX_ROOT in my command, it evaluates to $TM_PROJECT_DIRECTORY/flex.
FYI - This is on Version 1.5.3 (1292)
Thanks
Todd
On 10/21/06, Lists In@IDC listsin@integrateddevcorp.com wrote:
On Oct 21, 2006, at 6:08 PM, Allan Odgaard wrote:
On 21. Oct 2006, at 21:45, Todd Breiholz wrote:
Is it possible to define a shell variable by referencing another shell variable?
Yes
Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
That should work fine.
Except it should be $TM_FLEX_ROOT on the second line, yes?
S
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Oct 21, 2006, at 8:38 PM, Todd Breiholz wrote:
Thanks for the response. Maybe I wasn't clear, though. I'm trying to define the TM_FLEX_ROOT project variable in the _project information window_ with a value of $TM_PROJECT_DIRECTORY/flex
When I evaluate $TM_FLEX_ROOT in my command, it evaluates to $TM_PROJECT_DIRECTORY/flex.
So, the nested definition is not expanding properly?
I thought it might be a typing error as what you posted wasn't exactly right...
S
FYI - This is on Version 1.5.3 (1292)
Thanks
Todd
On 10/21/06, Lists In@IDC listsin@integrateddevcorp.com wrote:
On Oct 21, 2006, at 6:08 PM, Allan Odgaard wrote:
On 21. Oct 2006, at 21:45, Todd Breiholz wrote:
Is it possible to define a shell variable by referencing another shell variable?
Yes
Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
That should work fine.
Except it should be $TM_FLEX_ROOT on the second line, yes?
S
_
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you
don't)
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 10/21/06, Lists In@IDC listsin@integrateddevcorp.com wrote:
On Oct 21, 2006, at 8:38 PM, Todd Breiholz wrote:
Thanks for the response. Maybe I wasn't clear, though. I'm trying to define the TM_FLEX_ROOT project variable in the _project information window_ with a value of $TM_PROJECT_DIRECTORY/flex
When I evaluate $TM_FLEX_ROOT in my command, it evaluates to $TM_PROJECT_DIRECTORY/flex.
So, the nested definition is not expanding properly?
Correct, it is not being expanded.
I thought it might be a typing error as what you posted wasn't exactly right... S
FYI - This is on Version 1.5.3 (1292)
Thanks
Todd
On 10/21/06, Lists In@IDC listsin@integrateddevcorp.com wrote:
On Oct 21, 2006, at 6:08 PM, Allan Odgaard wrote:
On 21. Oct 2006, at 21:45, Todd Breiholz wrote:
Is it possible to define a shell variable by referencing another shell variable?
Yes
Here's an example of what I am trying to do:
(These are project variables) TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
That should work fine.
Except it should be $TM_FLEX_ROOT on the second line, yes?
S
_
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you
don't)
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 22. Oct 2006, at 02:38, Todd Breiholz wrote:
Thanks for the response. Maybe I wasn't clear, though. I'm trying to define the TM_FLEX_ROOT project variable in the _project information window_ with a value of $TM_PROJECT_DIRECTORY/flex
Ah okay, no, when setting variables from within TextMate, you cannot use other variables in the value.
Instead create a file named .textmate_init in your project, and let it contain:
export TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex export TM_SERVICES=$TM_FLEX_ROOT/config/WEB-INF/flex/services- config.xml
Then for all (shell) commands you run from that project, the variables should be correctly expanded.