[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: Fri, 20 Jul 2018 19:10:31 +0000

Philip Martin wrote on Thu, 19 Jul 2018 23:07 +0100:
> Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:
>
> >> The workaround is to use:
> >>
> >> echo -ne "ignorethis\n" | svn ps svn:ignore -F - .
> >
> > By the way, an even simpler workaround in this case is
> >
> > svn ps svn:ignore -m $'ignorethis\n' ./
>
> No. In this case -F specifies the property value, not the log message.
>

Ah, my bad. In that case, just drop the -m:

    svn ps svn:ignore $'line1\nline2\nline3\n' ./

This also shows one way to propset a multiline value.

> Something like this may work:
>
> svn ps svn:ignore $(echo -ne "ignorethis\n") .
>
> but quoting multiple line values can be tricky.

This should work:

    svn ps svn:ignore "$(printf '%s\n' 'line1' 'line2' 'line3' ...)"

(up to trailing newlines)

Cheers,

Daniel
Received on 2018-07-20 21:10:40 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.