#914904 subversion: svn fails with exit status 1 instead of 141 when outputting to a pipe

Package:
subversion
Source:
subversion
Description:
Advanced version control system
Submitter:
Vincent Lefevre
Date:
2018-11-28 13:51:08 UTC
Severity:
normal
#914904#5
Date:
2018-11-28 13:47:38 UTC
From:
To:
After cd'ing to a working copy:

$ { svn info ; echo "Exit status: $?" >&2 ; } > /dev/null
Exit status: 0

but

$ { svn info ; echo "Exit status: $?" >&2 ; } | true
Exit status: 1

This is actually a broken pipe, so that the exit status should be
128+SIGPIPE in order to be able to differentiate this error[*] from
other errors.

[*] In some contexts, the broken pipe could be expected, thus be
ignored by scripts.