Yeah, you can't really use csh or tcsh with cap, because it assumes  
that the following is valid:

   NAME=VALUE NAME=VALUE command arguments

In other words, it assumes you can add to the command environment by  
prefixing the command with name=value pairs.

I do know what the problem here is, but I'm unsure how to fix it  
properly. I'm particularly confused why no one else is having this  
problem--I can't duplicate it, for instance. I think I'm learning  
that even "POSIX" shells are not entirely standardized. :(

- Jamis

On Jun 18, 2007, at 5:43 PM, tobi wrote:

>
> I fixed it! For some reasons the tcsh is used on my remote server. So
> I added
> 'set :default_shell, "/usr/bin/tcsh"' to my cap file and the error is
> gone!
>
> But now I do get this error:
>   TZ=UTC: Command not found.
>
> Well, this doen't not stop the deploy processb but still, there is an
> error!
> What's wrong?
>
> Ideas?
> Thanks Tobi
>
>
> On Jun 18, 1:26 pm, tobi <[EMAIL PROTECTED]> wrote:
>> Hi all!
>>
>> I'm using the latest capistrano version 1.99.3. On executing "cap
>> deploy" I do get a "syntax error near unexpected token `;;'" error:
>>
>> ...
>>   * executing "find /app/releases/20070618111650/public/images /app/
>> releases/20070618111650/public/stylesheets /app/releases/
>> 20070618111650/public/javascripts -exec touch -t 200706181117.51 {} \
>> \;; true"
>>     servers: ["serv-4103"]
>>     [serv-4103] executing command
>>  ** [out :: serv-4103] sh: -c: line 1: syntax error near unexpected
>> token `;;'
>>  ** [out :: serv-4103] sh: -c: line 1: `TZ=UTC find /app/releases/
>> 20070618111650/public/images /app/releases/20070618111650/public/
>> stylesheets /app/releases/20070618111650/public/javascripts -exec
>> touch -t 200706181117.51 {} \\;; true'
>>     command finished
>> *** [deploy:update_code] rolling back
>>   * executing "rm -rf /app/releases/20070618111650; true"
>>     servers: ["serv-4103"]
>>     [serv-4103] executing command
>>     command finished
>> command "TZ=UTC find /app/releases/20070618111650/public/images /app/
>> releases/20070618111650/public/stylesheets /app/releases/
>> 20070618111650/public/javascripts -exec touch -t 200706181117.51 {} \
>> \;; true" failed on serv-4103
>> ...
>>
>> looks like an escape problem with \\;;  - but I couldn't fix it.
>>
>> remote system is:
>> Linux serv-4103 2.6.5-7.276-smp #1 SMP Mon Jul 24 10:45:31 UTC 2006
>> i686 i686 i386 GNU/Linux
>>
>> sh -version
>> -> GNU bash, version 2.05b.0(1)-release (i586-suse-linux) Copyright
>> (C) 2002 Free Software Foundation, Inc.
>>
>> Any ideas?
>> Thanks, bye Tobi
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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