From e047b0bf302284da61e677432e4cc25b531b24f2 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 31 May 2024 11:16:18 +0100 Subject: [PATCH] fix(phoenix): Add missing newlines to sed command output --- packages/phoenix/src/puter-shell/coreutils/sed/command.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/phoenix/src/puter-shell/coreutils/sed/command.js b/packages/phoenix/src/puter-shell/coreutils/sed/command.js index f349db9c7..4a2b4d37d 100644 --- a/packages/phoenix/src/puter-shell/coreutils/sed/command.js +++ b/packages/phoenix/src/puter-shell/coreutils/sed/command.js @@ -343,7 +343,7 @@ export class DebugPrintCommand extends Command { output += c; } } - await context.out.write(output); + await context.out.write(output + '\n'); return JumpLocation.None; } @@ -360,7 +360,7 @@ export class PrintCommand extends Command { } async run(context) { - await context.out.write(context.patternSpace); + await context.out.write(context.patternSpace + '\n'); return JumpLocation.None; } @@ -378,7 +378,7 @@ export class PrintLineCommand extends Command { async run(context) { const firstLine = context.patternSpace.split('\n', 2)[0]; - await context.out.write(firstLine); + await context.out.write(firstLine + '\n'); return JumpLocation.None; }