Thanks for following up. sh --version returns:
GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0)
Copyright (C) 2002 Free Software Foundation, Inc.

So a bit older than yours. I'll look into updating.

Thanks

Roddie


On 23/3/10 06:48, "[email protected]" <[email protected]>
wrote:

> Hmm. Your line looks identical to mine. What shell are you using? Mine
> is Bash:
> 
> $ sh --version
> GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
> Copyright (C) 2007 Free Software Foundation, Inc.
> 
> -- jeet
> 
> On Mar 22, 11:27 am, Roddie Grant <[email protected]> wrote:
>> Nice tip too, but I keep getting
>> "sh: -c: line 2: syntax error: unexpected end of file"
>> 
>> This is the line straight from the .gitconfig file (it is on one line):
>> bbdiff = !"sh -c \"if [ -f '$1' ] && [ -f '$2' ]; then bbdiff --wait
>> --resume '$1' '$2' fi exit 0 \""
>> 
>> I got Jim's git-diff-driver.sh working, but decided I prefer the + and -
>> lines as shown in Terminal. But it would be great to have an easy option to
>> use BBEdit when the differences are a bit more significant that usual.
>> 
>> Thanks
>> 
>> Roddie Grant
>> 
>> On 22/3/10 14:04, "[email protected]" <[email protected]>
>> wrote:
>> 
>>> Nice tip!
>> 
>>> Extending this, by adding the following line to "~/.gitconfig":
>> 
>>> bbdiff = !"sh -c \"if [ -f '$1' ] && [ -f '$2' ]; then bbdiff --wait --
>>> resume '$1' '$2' fi exit 0 \""
>> 
>>> you can then "git bbdiff" to invoke the BBEdit diff viewer.


-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
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/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

To unsubscribe from this group, send email to 
bbedit+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to