Command substitution in sh strips trailing newlines, so accumulating output in a variable via $(...) lost all line breaks. Reverted to direct printf calls which work correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Command substitution in sh strips trailing newlines, so accumulating output in a variable via $(...) lost all line breaks. Reverted to direct printf calls which work correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>