]> git.draconx.ca Git - dxcommon.git/commit
Fix DX_COMMAND_OUTPUT backslash-newline on heirloom-sh.
authorNick Bowler <nbowler@draconx.ca>
Tue, 9 Mar 2021 03:36:50 +0000 (22:36 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 9 Mar 2021 03:36:50 +0000 (22:36 -0500)
commitc01bc8e8ea99252f4249434e432896c8f2ae1199
treebfc384fd162dff413c9dff53d5fa1c84e6be25f4
parent19bb62393cbee31cd377d4e9bd1b493ca91528bd
Fix DX_COMMAND_OUTPUT backslash-newline on heirloom-sh.

It seems that heirloom-sh (and presumably Solaris /bin/sh) read just
silently eats backslash-newlines, and escaping the backslash does
nothing useful, the shell just eats both backslashes and the newline.

Attempt to avoid this problem by appending a magic string to
troublesome lines, and stripping it after reading.  This will
obviously fail if the input _actually_ has this sequence but
hopefully that will not be an issue in practice.
m4/cmdout.m4