Skip to content

Commit e047b0b

Browse files
committed
fix(phoenix): Add missing newlines to sed command output
1 parent f250f86 commit e047b0b

File tree

1 file changed

+3
-3
lines changed
  • packages/phoenix/src/puter-shell/coreutils/sed

1 file changed

+3
-3
lines changed

packages/phoenix/src/puter-shell/coreutils/sed/command.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export class DebugPrintCommand extends Command {
343343
output += c;
344344
}
345345
}
346-
await context.out.write(output);
346+
await context.out.write(output + '\n');
347347
return JumpLocation.None;
348348
}
349349

@@ -360,7 +360,7 @@ export class PrintCommand extends Command {
360360
}
361361

362362
async run(context) {
363-
await context.out.write(context.patternSpace);
363+
await context.out.write(context.patternSpace + '\n');
364364
return JumpLocation.None;
365365
}
366366

@@ -378,7 +378,7 @@ export class PrintLineCommand extends Command {
378378

379379
async run(context) {
380380
const firstLine = context.patternSpace.split('\n', 2)[0];
381-
await context.out.write(firstLine);
381+
await context.out.write(firstLine + '\n');
382382
return JumpLocation.None;
383383
}
384384

0 commit comments

Comments
 (0)