From 16bff4ca48e549ad765ee2dc296464c86e00a4fa Mon Sep 17 00:00:00 2001 From: Agando Date: Tue, 29 Sep 2026 13:11:09 +0200 Subject: newOS4: sed command (s///, /pat/d, Nd, -i, -n, pipe input) + help entries --- scripts/test-fs-commands.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/test-fs-commands.mjs') diff --git a/scripts/test-fs-commands.mjs b/scripts/test-fs-commands.mjs index 72f81ae..a30faed 100644 --- a/scripts/test-fs-commands.mjs +++ b/scripts/test-fs-commands.mjs @@ -147,7 +147,7 @@ const L12 = ['l1','l2','l3','l4','l5','l6','l7','l8','l9','l10','l11','l12'].joi { const { mod, out } = scenario({ 'a.txt': 'foo bar\nfoo baz' }); runCmd(mod, 'sed', ['s/foo/X/', 'a.txt']); - check('sed s/foo/X/ first per line', text(out) === 'X bar\nfoo baz', text(out)); + check('sed s/foo/X/ first per line', text(out) === 'X bar\nX baz', text(out)); } { const { mod, out } = scenario({ 'a.txt': 'foo bar foo' }); @@ -204,7 +204,7 @@ const L12 = ['l1','l2','l3','l4','l5','l6','l7','l8','l9','l10','l11','l12'].joi const { mod, out, terminal } = scenario({}); terminal._pipeInput = 'x1\nx2'; runCmd(mod, 'sed', ['s/x/y/']); - check('sed reads pipe input', text(out) === 'y1\nx2', text(out)); + check('sed reads pipe input', text(out) === 'y1\ny2', text(out)); } { const { mod, out } = scenario({}); -- cgit v1.2.3