On Tuesday 23 February 2010, Lee Hambley elucidated thus:
> You should use:
>
> run <<-EOB
>   # your bash code here
> EOB

I did do that, but I was still getting error from bash about "sh -c, 
unexpected end of file on line xx". I ended up using the HERE doc, but 
I put semi-colons after every statement as simple newlines were not 
working as statement terminators.

This was for one of two reasons, either newline doesn't work as a 
statement terminator when passed in via -c, or bash in "sh mode" (i.e. 
invoked as sh) requires semi-colons as statement terminators. I've not 
tested which it is.

At any rate, I have "run" HERE docs working great now. It was nice to 
leave my bash code formatted nicely. :)

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x14EA086E

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to