Re: does POSIX mandate whether the output in a command substitution needs to end with \n?

2022-01-25 Thread Robert Elz via austin-group-l at The Open Group
Date:Tue, 25 Jan 2022 05:49:35 +0100 From:"Christoph Anton Mitterer via austin-group-l at The Open Group" Message-ID: <1d37886c42d9bb282594c9acb0575454f756e3cf.ca...@scientia.org> | My question is rather, does the final line of the commands standard | output

Re: does POSIX mandate whether the output in a command substitution needs to end with \n?

2022-01-25 Thread Geoff Clare via austin-group-l at The Open Group
Christoph Anton Mitterer wrote, on 25 Jan 2022: > > In other words, if the stdout would be as follows: > printf 'abc\nxyz' > would a (weird) shell be free to choose to only substitute 'abc', since > 'xyz' is not newline-terminated... but still be conforming in the sense > of POSIX? > > My