Make getProcString available on Builder
This makes getProcString
which is currently only on ProcResult
available on ProcBuilder
.
Also, it fixes escaping for arguments. Now it is safer to paste the output of getProcString
straight into the shell. Note that the escaping is really naïve and only works for whitespace and the delimiter character.
This fix introduces an incompatibility, because the ProcResult#getProcString now
uses single quotes for escaping arguments containing whitespace.