Thanks for the suggestion, Drew. `env' is definitely a better option  
there.

- Jamis

On Jun 19, 2007, at 9:51 AM, Drew Raines wrote:

>
> Jamis Buck wrote:
>
>> It looks like Capistrano needs to execute the commands like this:
>>
>>    A=B X=Y sh -c "command && command && command"
>>
>> That, or:
>>
>>    export A=B X=Y && command && command && command
>
> It would be wise to remove the login shell from the mix with env(1):
>
>   $ echo $SHELL
>   /bin/bash
>   $ env FOO=bar sh -c 'echo $FOO'
>   bar
>   $ tcsh
>   % env FOO=bar sh -c 'echo $FOO'
>   bar
>   % exit
>   $ csh
>   % env FOO=bar sh -c 'echo $FOO'
>   bar
>
> -Drew
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to