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