subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: using -F fails using bash process substitution. bug?
Date Fri, 20 Jul 2018 19:10:31 GMT
Philip Martin wrote on Thu, 19 Jul 2018 23:07 +0100:
> Daniel Shahaf <d.s@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

Mime
View raw message