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

Re: using -F fails using bash process substitution. bug?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 19 Jul 2018 18:36:57 +0000

Philip Martin wrote on Thu, 19 Jul 2018 16:16 +0100:
> It's possible it did work in the past and in other places that construct
> does work, e.g.
> svnmucc -mm put <(echo foo) URL
> Subversion has multiple ways to read a file and when reading from a pipe
> (and that shell command constructs a pipe)

Some shells support a =(...) construct, which is like <(...) except it
expands not to a pipe but to an ordinary file, which can be seek()ed,
stat()ed, etc., so this problem wouldn't arise.

> the code that uses stat() to get the filesize doesn't work because the
> pipe filesize is zero. There is other code that doesn't use stat() and
> reads in block until EOF, and that works for pipes. We might be able
> to fix the code that uses stat() by having it check for EOF as well.


Received on 2018-07-19 20:37:07 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.