[PATCH] Force final newline in xmlstarlet

Daniel Lenski dlenski at gmail.com
Mon Feb 19 22:22:06 PST 2024


On Sat, Feb 3, 2024 at 9:10 AM Jon DeVree <nuxi at vault24.org> wrote:
> By default xmlstarlet does not include a final newline on the output.
> Because POSIX says that all lines must end in a newline, this causes the
> final line of output to be skipped by the 'while read ...' loop in bash.
> Adding a '-n' after the '-v ...' causes xmlstarlet to include a final
> newline at the end of its output.

Thank you! Out of curiosity, on what platform(s) does this cause a
problem? MacOS… *BSD…?

I see this was already merged, thanks to Dimitri and Nikos (in
https://gitlab.com/openconnect/openconnect/-/merge_requests/535).



More information about the openconnect-devel mailing list