Philip Martin wrote on Thu, 19 Jul 2018 23:07 +0100:
> Daniel Shahaf <d...@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

Reply via email to