[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: graphical diff'ing script

From: <kbrannen_at_gte.net>
Date: 2002-12-11 23:01:58 CET

Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> kbrannen@gte.net wrote:
...
>>BTW, the "<(svn cat $file 2>/dev/null)" construct does NOT work for me
>>in either bash or ksh. Bash says: "Error: not an ordinary file or a
>>directory",
>
>
> I don't know what kind of version of bash you're using. It definitely
> works in general. I use it every day. Does
>
> cat <(cat /etc/issue)
>
> work for you (assuming you have an /etc/issue file)? If not, you 're
> either using your shell as /bin/sh it's broken or very old.

A script of:

#!/bin/bash
cat <(cat /etc/issue)

seems to work. Maybe I had a typo before? OTOH, you are correct that if I
change that to /bin/sh it does fail. Asking for version gives me:

GNU bash, version 2.05.0(1)-release (i386-suse-linux)

I wouldn't know if it's old or not. As I said before, I live in a ksh world,
but do try to write to bash standards too as a help to others. I'll try your
suggestion again and see what happens.

It still fails. If I echo the command out, I see:

xxdiff -geometry 1000x400+0+0 /dev/fd/63 README

so there's the special file you were talking about. I'll interpret this to
mean that xxdiff can't handle it. In fact, with some further testing, all 3
of my graphical diffs fail; but regular "diff" can handle it. Do you have any
idea why? (Maybe because the graphical programs don't read the file
themselves but create a diff child process which then doesn't have access to
the special file?)

Maybe Daniele's idea of doing:

last=$(mktemp "/tmp/$file.XXXXXX") || exit 1

to create a real file is the best all-around answer after all.

Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 11 22:58:52 2002

This is an archived mail posted to the Subversion Dev mailing list.